aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-10-14 20:39:00 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-10-14 20:39:00 -0700
commitb9beea6e9d0f789f11d249b040e549d535bdc295 (patch)
treee87c3422b52b1f6d78b88b9cea756c1f3cb8d37b /src/qt/walletmodel.cpp
parentae6601872be4065f90713b9b6ef07e9883afec79 (diff)
parent4c6d41b8b653ef90639b1a32f6aab0bb1cef90c5 (diff)
Merge pull request #3077 from sipa/chain
Refactor/encapsulate chain globals into a CChain class
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index bda39b675f..099fbe8dc3 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -73,10 +73,10 @@ void WalletModel::updateStatus()
void WalletModel::pollBalanceChanged()
{
- if(nBestHeight != cachedNumBlocks)
+ if(chainActive.Height() != cachedNumBlocks)
{
// Balance and number of transactions might have changed
- cachedNumBlocks = nBestHeight;
+ cachedNumBlocks = chainActive.Height();
checkBalanceChanged();
}
}