From 4bd83d4ff0ade6cdd5e4f9522fd333dee20e0742 Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Thu, 25 Sep 2025 00:55:16 -0400 Subject: [PATCH] fix syncing wallets over tor on first sync --- .../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() {