Bugfix: nTotalBlocks wasn't in 0.5.0, so need to replace it with equivalent function...
authorLuke Dashjr <luke-jr+git@utopios.org>
Sun, 15 Apr 2012 17:23:34 +0000 (13:23 -0400)
committerLuke Dashjr <luke-jr+git@utopios.org>
Sun, 15 Apr 2012 17:23:34 +0000 (13:23 -0400)
src/qt/bitcoingui.cpp

index 08ccb75..778acd1 100644 (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));