mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Refactor/encapsulate chain globals into a CChain class
This commit is contained in:
@@ -250,9 +250,9 @@ void TransactionTableModel::updateTransaction(const QString &hash, int status)
|
||||
|
||||
void TransactionTableModel::updateConfirmations()
|
||||
{
|
||||
if(nBestHeight != cachedNumBlocks)
|
||||
if(chainActive.Height() != cachedNumBlocks)
|
||||
{
|
||||
cachedNumBlocks = nBestHeight;
|
||||
cachedNumBlocks = chainActive.Height();
|
||||
// Blocks came in since last poll.
|
||||
// Invalidate status (number of confirmations) and (possibly) description
|
||||
// for all rows. Qt is smart enough to only actually request the data for the
|
||||
|
||||
Reference in New Issue
Block a user