Skip to content

Commit b67bcda

Browse files
authored
wait 2 sync cycles for split output offer to become available (#419)
1 parent bd4864c commit b67bcda

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/HavenoClient.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,11 +2872,7 @@ async function executeTrade(ctxP: Partial<TradeContext>): Promise<string> {
28722872

28732873
// wait for offer to become available after split output tx unlocked
28742874
HavenoUtils.log(1, "Waiting for split output offer to become available, offer=" + ctx.offerId + ", txId=" + splitOutputTxId);
2875-
if (ctx.concurrentTrades) {
2876-
await wait(TestConfig.trade.walletSyncPeriodMs * 2 + TestConfig.trade.maxTimePeerNoticeMs);
2877-
} else {
2878-
await wait(TestConfig.trade.walletSyncPeriodMs + TestConfig.trade.maxTimePeerNoticeMs);
2879-
}
2875+
await wait(TestConfig.trade.walletSyncPeriodMs * 2 + TestConfig.trade.maxTimePeerNoticeMs);
28802876
HavenoUtils.log(1, "Done waiting for split output offer to become available, offer=" + ctx.offerId + ", txId=" + splitOutputTxId);
28812877
}
28822878
}

0 commit comments

Comments
 (0)