print stack on request connection switch on testnet

This commit is contained in:
woodser 2025-11-04 09:43:39 -05:00 committed by woodser
parent bcb46605ff
commit ad9e41fc5e

View file

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