From 2d5fc33ba48e48add4db494558511703785d5d3a Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Thu, 3 Dec 2020 14:19:24 -0500 Subject: [PATCH] Move MakerRemovesOpenOffer to first task to avoid that if take offer fails early that we get another trade with same id at maker in case another use takes the offer afterwards. --- .../java/bisq/core/trade/protocol/BuyerAsMakerProtocol.java | 2 +- .../java/bisq/core/trade/protocol/SellerAsMakerProtocol.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/bisq/core/trade/protocol/BuyerAsMakerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/BuyerAsMakerProtocol.java index 6374469db3..c9280d0e20 100644 --- a/core/src/main/java/bisq/core/trade/protocol/BuyerAsMakerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/BuyerAsMakerProtocol.java @@ -100,8 +100,8 @@ public class BuyerAsMakerProtocol extends BuyerProtocol implements MakerProtocol .with(message) .from(peer)) .setup(tasks( - BuyerProcessDelayedPayoutTxSignatureRequest.class, MakerRemovesOpenOffer.class, + BuyerProcessDelayedPayoutTxSignatureRequest.class, BuyerVerifiesPreparedDelayedPayoutTx.class, BuyerSignsDelayedPayoutTx.class, BuyerFinalizesDelayedPayoutTx.class, diff --git a/core/src/main/java/bisq/core/trade/protocol/SellerAsMakerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/SellerAsMakerProtocol.java index 1b63252368..0cdaad17c0 100644 --- a/core/src/main/java/bisq/core/trade/protocol/SellerAsMakerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/SellerAsMakerProtocol.java @@ -100,8 +100,8 @@ public class SellerAsMakerProtocol extends SellerProtocol implements MakerProtoc .with(message) .from(peer)) .setup(tasks( - SellerAsMakerProcessDepositTxMessage.class, MakerRemovesOpenOffer.class, + SellerAsMakerProcessDepositTxMessage.class, SellerAsMakerFinalizesDepositTx.class, SellerCreatesDelayedPayoutTx.class, SellerSignsDelayedPayoutTx.class,