From: gg Date: Mon, 12 Jan 2026 21:52:39 +0000 (-0500) Subject: fix: calc daemon height if 0 to show wallet depth X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=483e470a07a24df1673adb2fefc29c6d8a6db0e0;p=gamesguru%2Ffeather.git fix: calc daemon height if 0 to show wallet depth --- 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.