Remove precondition as trade was added at that moment

This commit is contained in:
chimp1984 2020-09-26 12:14:10 -05:00
parent 191b031f38
commit 9e5cdada5d
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
2 changed files with 2 additions and 4 deletions

View file

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

View file

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