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) {