Bugfix: nTotalBlocks wasn't in 0.5.0, so need to replace it with equivalent function call in backport

This commit is contained in:
Luke Dashjr
2012-04-15 13:23:34 -04:00
parent a558054709
commit e962c7f532

View File

@@ -4,6 +4,9 @@
* W.J. van der Laan 2011
* The Bitcoin Developers 2011
*/
#include "checkpoints.h"
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "addressbookpage.h"
@@ -480,7 +483,7 @@ void BitcoinGUI::setNumBlocks(int count)
}
// Set icon state: spinning if catching up, tick otherwise
if(secs < 90*60 && count >= nTotalBlocks)
if(secs < 90*60 && count >= Checkpoints::GetTotalBlocksEstimate())
{
tooltip = tr("Up to date") + QString(".\n") + tooltip;
labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));