diff options
| author | Pieter Wuille <[email protected]> | 2013-04-04 02:39:37 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-04-04 02:39:44 +0200 |
| commit | 92a129980fb9b506da6c7f876aa8adb405c88e17 (patch) | |
| tree | b1346cea2331b46fc889e8b1b85123fbc88f4e87 /src/main.cpp | |
| parent | Merge pull request #2386 from Diapolo/Mac_GUI (diff) | |
| download | discoin-92a129980fb9b506da6c7f876aa8adb405c88e17.tar.xz discoin-92a129980fb9b506da6c7f876aa8adb405c88e17.zip | |
Update transaction statistics
As these were not updated when 'backporting' the 225430 checkpoint
into head.
Additionally, also report verification progress in debug.log, and
tweak the sigcheck-verification-speed-factor a bit.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index b29091b4f..7474580a6 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) |