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.
This commit is contained in:
chimp1984 2020-12-03 14:19:24 -05:00
parent 1fdc43e4d0
commit 2d5fc33ba4
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,