From 74e094fa992971c61e7fb0484b00cc68460f3fd7 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 16 Oct 2024 07:33:43 -0400 Subject: [PATCH] poll trade wallet on error importing multisig or processing payout --- core/src/main/java/haveno/core/trade/Trade.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/haveno/core/trade/Trade.java b/core/src/main/java/haveno/core/trade/Trade.java index dbab49cd..f63fcc96 100644 --- a/core/src/main/java/haveno/core/trade/Trade.java +++ b/core/src/main/java/haveno/core/trade/Trade.java @@ -1080,6 +1080,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model { handleWalletError(e, sourceConnection); if (i == TradeProtocol.MAX_ATTEMPTS - 1) throw e; HavenoUtils.waitFor(TradeProtocol.REPROCESS_DELAY_MS); // wait before retrying + doPollWallet(); } } } @@ -1254,6 +1255,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model { handleWalletError(e, sourceConnection); if (i == TradeProtocol.MAX_ATTEMPTS - 1) throw e; HavenoUtils.waitFor(TradeProtocol.REPROCESS_DELAY_MS); // wait before retrying + doPollWallet(); } } throw new RuntimeException("Failed to create payout tx for " + getClass().getSimpleName() + " " + getId()); @@ -1283,6 +1285,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model { handleWalletError(e, sourceConnection); if (i == TradeProtocol.MAX_ATTEMPTS - 1) throw e; HavenoUtils.waitFor(TradeProtocol.REPROCESS_DELAY_MS); // wait before retrying + doPollWallet(); } finally { requestSaveWallet(); requestPersistence();