Refactor/encapsulate chain globals into a CChain class
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user