aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-02-22 08:59:36 -0800
committerGavin Andresen <[email protected]>2013-02-22 08:59:36 -0800
commit9dca7190f91189f5c0b8a7974fcc522e47d60e50 (patch)
tree0ae7728844bb63315003c337d9373e6d8efb4bcd /src/qt/clientmodel.cpp
parentMerge pull request #2312 from gmaxwell/random_random (diff)
parentTransactions-based verification progress (diff)
downloaddiscoin-9dca7190f91189f5c0b8a7974fcc522e47d60e50.tar.xz
discoin-9dca7190f91189f5c0b8a7974fcc522e47d60e50.zip
Merge pull request #2310 from sipa/progressbar
Progressbar based on time-based estimation of transactions.
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 084ad12a5..858fbe241 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -6,6 +6,7 @@
#include "alert.h"
#include "main.h"
+#include "checkpoints.h"
#include "ui_interface.h"
#include <QDateTime>
@@ -54,6 +55,11 @@ QDateTime ClientModel::getLastBlockDate() const
return QDateTime::fromTime_t(1231006505); // Genesis block's time
}
+double ClientModel::getVerificationProgress() const
+{
+ return Checkpoints::GuessVerificationProgress(pindexBest);
+}
+
void ClientModel::updateTimer()
{
// Some quantities (such as number of blocks) change so fast that we don't want to be notified for each change.