diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-07-05 15:28:42 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2012-07-05 15:28:42 -0700 |
commit | 6e3a1a374293a8a5adeb2ad464f7205e819585ee (patch) | |
tree | 50cc8d6cf558c68f63bcccc74342da14154f2f12 /src/db.cpp | |
parent | 698b9f3095f5a89126976593382e3af2c1152165 (diff) | |
parent | e69a7979901d1df8f0d90fcd4e1a21eb1fd38602 (diff) |
Merge pull request #1304 from rebroad/ShowBlockTimestamp
Show block timestamp
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/db.cpp b/src/db.cpp index ecdf32a8f0..e494d28e3c 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -510,7 +510,9 @@ bool CTxDB::LoadBlockIndex() pindexBest = mapBlockIndex[hashBestChain]; nBestHeight = pindexBest->nHeight; bnBestChainWork = pindexBest->bnChainWork; - printf("LoadBlockIndex(): hashBestChain=%s height=%d\n", hashBestChain.ToString().substr(0,20).c_str(), nBestHeight); + printf("LoadBlockIndex(): hashBestChain=%s height=%d date=%s\n", + hashBestChain.ToString().substr(0,20).c_str(), nBestHeight, + DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()).c_str()); // Load bnBestInvalidWork, OK if it doesn't exist ReadBestInvalidWork(bnBestInvalidWork); |