mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Remove precondition as trade was added at that moment
This commit is contained in:
parent
191b031f38
commit
9e5cdada5d
2 changed files with 2 additions and 4 deletions
|
@ -75,8 +75,7 @@ public class BuyerAsTakerProtocol extends BuyerProtocol implements TakerProtocol
|
|||
@Override
|
||||
public void onTakeOffer() {
|
||||
expect(phase(Trade.Phase.INIT)
|
||||
.with(TakerEvent.TAKE_OFFER)
|
||||
.preCondition(!processModel.getTradeManager().wasOfferAlreadyUsedInTrade(trade.getId())))
|
||||
.with(TakerEvent.TAKE_OFFER))
|
||||
.setup(tasks(
|
||||
ApplyFilter.class,
|
||||
getVerifyPeersFeePaymentClass(),
|
||||
|
|
|
@ -71,8 +71,7 @@ public class SellerAsTakerProtocol extends SellerProtocol implements TakerProtoc
|
|||
public void onTakeOffer() {
|
||||
expect(phase(Trade.Phase.INIT)
|
||||
.with(TakerEvent.TAKE_OFFER)
|
||||
.from(trade.getTradingPeerNodeAddress())
|
||||
.preCondition(!processModel.getTradeManager().wasOfferAlreadyUsedInTrade(trade.getId())))
|
||||
.from(trade.getTradingPeerNodeAddress()))
|
||||
.setup(tasks(
|
||||
ApplyFilter.class,
|
||||
getVerifyPeersFeePaymentClass(),
|
||||
|
|
Loading…
Add table
Reference in a new issue