From 24cde0b7d1ad014ffca5d0af896bc50b30e5ddcd Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sun, 10 Feb 2013 19:01:30 +0100 Subject: Change progress bar from block-based to time-based This is less confusing to most people, and doesn't rely on estimates of the total number of blocks received from other nodes. --- src/qt/clientmodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qt/clientmodel.cpp') diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 084ad12a5..5f3368c30 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -54,6 +54,7 @@ QDateTime ClientModel::getLastBlockDate() const return QDateTime::fromTime_t(1231006505); // Genesis block's time } + void ClientModel::updateTimer() { // Some quantities (such as number of blocks) change so fast that we don't want to be notified for each change. -- cgit v1.2.3 From 9f2467ad6241ce6cf0897ed30c676598d59441a7 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 10 Feb 2013 19:46:42 +0100 Subject: Transactions-based verification progress --- src/qt/clientmodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qt/clientmodel.cpp') diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 5f3368c30..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 @@ -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() { -- cgit v1.2.3