From ad9e41fc5ea339acd2b21856925e514de05000be Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Tue, 4 Nov 2025 09:43:39 -0500 Subject: [PATCH] print stack on request connection switch on testnet --- .../main/java/haveno/core/api/XmrConnectionService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index c91fb0e325..6e41c163cc 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -317,6 +317,13 @@ public final class XmrConnectionService { public synchronized boolean requestSwitchToNextBestConnection(MoneroRpcConnection sourceConnection) { log.warn("Requesting switch to next best monerod, source monerod={}", sourceConnection == null ? getConnection() == null ? null : getConnection().getUri() : sourceConnection.getUri()); + if (Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_LOCAL) { + try { + throw new RuntimeException("Requesting connection switch on testnet"); + } catch (Exception e) { + e.printStackTrace(); + } + } // skip if shut down started if (isShutDownStarted) {