]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
fix: calc daemon height if 0 to show wallet depth
authorgg <chown_tee@proton.me>
Mon, 12 Jan 2026 21:52:39 +0000 (16:52 -0500)
committergg <chown_tee@proton.me>
Mon, 12 Jan 2026 22:07:04 +0000 (17:07 -0500)
src/utils/Utils.cpp

index 53566aae7e7a43cbfe64b6a1923aabe186a69c91..f6b82b386752ff03ba20f062b6003724ec6e500e 100644 (file)
@@ -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.