expect deposits to be confirmed or unlocked when payment sent

This commit is contained in:
woodser 2022-10-01 14:26:49 -04:00
parent 5bd05af890
commit 58aad5e6ae

View file

@ -117,7 +117,7 @@ public abstract class SellerProtocol extends DisputeProtocol {
return;
}
latchTrade();
expect(anyPhase(Trade.Phase.DEPOSITS_UNLOCKED, Trade.Phase.DEPOSITS_PUBLISHED)
expect(anyPhase(Trade.Phase.DEPOSITS_CONFIRMED, Trade.Phase.DEPOSITS_UNLOCKED)
.with(message)
.from(peer)
.preCondition(trade.getPayoutTx() == null,