From 483e470a07a24df1673adb2fefc29c6d8a6db0e0 Mon Sep 17 00:00:00 2001 From: gg Date: Mon, 12 Jan 2026 16:52:39 -0500 Subject: [PATCH] fix: calc daemon height if 0 to show wallet depth --- src/utils/Utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 53566aae..f6b82b38 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -759,6 +759,9 @@ QString getPausedSyncStatus(Wallet *wallet, Nodes *nodes, QString *tooltip) { quint64 creationHeight = wallet->getWalletCreationHeight(); quint64 startHeight = (walletHeight > creationHeight) ? walletHeight : creationHeight; quint64 daemonHeight = wallet->daemonBlockChainTargetHeight(); + if (daemonHeight == 0) { + daemonHeight = wallet->daemonBlockChainHeight(); + } // If sync is paused or wallet just started, Wallet's internal height might be 0. // If the daemon is connected, use its target_height or height to determine the latest tip. -- 2.52.0