diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2013-02-10 19:46:42 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2013-02-16 14:51:00 +0100 |
commit | 9f2467ad6241ce6cf0897ed30c676598d59441a7 (patch) | |
tree | 88f4a58c49b2982ce57098f2e30cd860a2ea352a /src/qt/clientmodel.cpp | |
parent | 24cde0b7d1ad014ffca5d0af896bc50b30e5ddcd (diff) |
Transactions-based verification progress
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r-- | src/qt/clientmodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 5f3368c30a..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,10 @@ QDateTime ClientModel::getLastBlockDate() const return QDateTime::fromTime_t(1231006505); // Genesis block's time } +double ClientModel::getVerificationProgress() const +{ + return Checkpoints::GuessVerificationProgress(pindexBest); +} void ClientModel::updateTimer() { |