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; return;
} }
latchTrade(); latchTrade();
expect(anyPhase(Trade.Phase.DEPOSITS_UNLOCKED, Trade.Phase.DEPOSITS_PUBLISHED) expect(anyPhase(Trade.Phase.DEPOSITS_CONFIRMED, Trade.Phase.DEPOSITS_UNLOCKED)
.with(message) .with(message)
.from(peer) .from(peer)
.preCondition(trade.getPayoutTx() == null, .preCondition(trade.getPayoutTx() == null,