wait to observe published tx on error with payment received

This commit is contained in:
woodser 2024-05-07 16:54:41 -04:00
parent d64ee42154
commit 203386f03d

View File

@ -166,6 +166,7 @@ public class ProcessPaymentReceivedMessage extends TradeTask {
trade.processPayoutTx(trade.getPayoutTxHex(), false, true);
}
} catch (Exception e) {
HavenoUtils.waitFor(trade.getXmrConnectionService().getRefreshPeriodMs()); // wait to see published tx
trade.syncAndPollWallet();
if (trade.isPayoutPublished()) log.info("Payout tx already published for {} {}", trade.getClass().getName(), trade.getId());
else throw e;