From 8a3cf662a1aa30b0fb1046bf179c0ad1a1267a12 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 16 Aug 2024 10:35:03 -0400 Subject: [PATCH] add logging and todo when monerod syncing behind tolerance --- .../main/java/haveno/core/xmr/wallet/XmrWalletService.java | 5 ++++- 1 file changed, 4 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 ea0d77fb06..9bf6906927 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -1767,9 +1767,12 @@ public class XmrWalletService extends XmrWalletBase { return; } if (!xmrConnectionService.isSyncedWithinTolerance()) { - log.warn("Monero daemon is not synced within tolerance, height={}, targetHeight={}", xmrConnectionService.chainHeightProperty().get(), xmrConnectionService.getTargetHeight()); + + // TODO: this spams console every 5s when local node started and syncing + log.warn("Monero daemon is not synced within tolerance, height={}, targetHeight={}, monerod={}", xmrConnectionService.chainHeightProperty().get(), xmrConnectionService.getTargetHeight(), xmrConnectionService.getConnection() == null ? null : xmrConnectionService.getConnection().getUri()); return; } + // sync wallet if behind daemon if (walletHeight.get() < xmrConnectionService.getTargetHeight()) { synchronized (walletLock) { // avoid long sync from blocking other operations