diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-02-22 08:59:36 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-02-22 08:59:36 -0800 |
commit | 9dca7190f91189f5c0b8a7974fcc522e47d60e50 (patch) | |
tree | 0ae7728844bb63315003c337d9373e6d8efb4bcd /src/qt/clientmodel.cpp | |
parent | aaeb443791f880351692ac020e8fdea44d2270b0 (diff) | |
parent | 9f2467ad6241ce6cf0897ed30c676598d59441a7 (diff) |
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.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 084ad12a56..858fbe241f 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. |