From 518ebaff8853273436cae6b8cd4320fbd26ed6cd Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 26 Sep 2025 00:02:58 -0400 Subject: [PATCH] fix syncing wallets over tor on first sync (#1977) --- .../main/java/haveno/core/xmr/wallet/XmrWalletService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java index 1792c542bc..b8e4264c66 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -300,7 +300,9 @@ public class XmrWalletService extends XmrWalletBase { } public boolean isProxyApplied(boolean wasWalletSynced) { - return xmrConnectionService.isProxyApplied() || preferences.isProxyApplied(wasWalletSynced); + MoneroRpcConnection connection = xmrConnectionService.getConnection(); + if (connection != null && connection.isOnion()) return true; // must use proxy if connected to onion + return xmrConnectionService.isProxyApplied() && preferences.isProxyApplied(wasWalletSynced); } public String getWalletPassword() {