aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR E Broadley <rebroad+github@gmail.com>2014-02-18 11:04:06 -0800
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-11 09:24:12 +0100
commitff882789af7b24db6095690ae83d0bae38ddb998 (patch)
tree44c5388744c1d4b299af89d4531d8c4da790069d
parent456825456810bcc8cc37a65672b68bcb745f5d42 (diff)
Add progress to initial display of latest block downloaded.
Rebased-From: c4656e0
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7afaa9e7e2..3cbdc14274 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2764,9 +2764,10 @@ bool static LoadBlockIndexDB()
if (it == mapBlockIndex.end())
return true;
chainActive.SetTip(it->second);
- LogPrintf("LoadBlockIndexDB(): hashBestChain=%s height=%d date=%s\n",
+ LogPrintf("LoadBlockIndexDB(): hashBestChain=%s height=%d date=%s progress=%f\n",
chainActive.Tip()->GetBlockHash().ToString(), chainActive.Height(),
- DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime()));
+ DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime()),
+ Checkpoints::GuessVerificationProgress(chainActive.Tip()));
return true;
}