aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-04-03 18:23:50 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-04-03 18:23:50 -0700
commit1c4f02139c03d0eedd52ebe0f886d44820402bf6 (patch)
treee385d39224a092453ddad0154514a96d30382be3 /src/main.cpp
parent36fdfb989e383324b00e250040aadaeb8286256b (diff)
parent92a129980fb9b506da6c7f876aa8adb405c88e17 (diff)
Merge pull request #2453 from sipa/txstats
Update transaction statistics
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 60593c0d5f..52bf3faa64 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1868,9 +1868,10 @@ bool SetBestChain(CValidationState &state, CBlockIndex* pindexNew)
bnBestChainWork = pindexNew->bnChainWork;
nTimeBestReceived = GetTime();
nTransactionsUpdated++;
- printf("SetBestChain: new best=%s height=%d work=%s tx=%lu date=%s\n",
+ printf("SetBestChain: new best=%s height=%d work=%s tx=%lu date=%s progress=%f\n",
BlockHashStr(hashBestChain).c_str(), nBestHeight, bnBestChainWork.ToString().c_str(), (unsigned long)pindexNew->nChainTx,
- DateTimeStrFormat("%Y-%m-%d %H:%M:%S", pindexBest->GetBlockTime()).c_str());
+ DateTimeStrFormat("%Y-%m-%d %H:%M:%S", pindexBest->GetBlockTime()).c_str(),
+ Checkpoints::GuessVerificationProgress(pindexBest));
// Check the version of the last 100 blocks to see if we need to upgrade:
if (!fIsInitialDownload)