diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -72,11 +72,11 @@
         return;
     }
 
-    if (fForceCheckBalanceChanged || m_node.getNumBlocks() != cachedNumBlocks) {
+    if (fForceCheckBalanceChanged || numBlocks != cachedNumBlocks) {
         fForceCheckBalanceChanged = false;
 
         // Balance and number of transactions might have changed
-        cachedNumBlocks = m_node.getNumBlocks();
+        cachedNumBlocks = numBlocks;
 
         checkBalanceChanged(new_balances);
         if (transactionTableModel) {