From 203386f03d3cf4b1d147f17c8a31b4563b60124a Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 7 May 2024 16:54:41 -0400 Subject: [PATCH] wait to observe published tx on error with payment received --- .../core/trade/protocol/tasks/ProcessPaymentReceivedMessage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/haveno/core/trade/protocol/tasks/ProcessPaymentReceivedMessage.java b/core/src/main/java/haveno/core/trade/protocol/tasks/ProcessPaymentReceivedMessage.java index c268550cc5..2486519df7 100644 --- a/core/src/main/java/haveno/core/trade/protocol/tasks/ProcessPaymentReceivedMessage.java +++ b/core/src/main/java/haveno/core/trade/protocol/tasks/ProcessPaymentReceivedMessage.java @@ -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;