From e69a7979901d1df8f0d90fcd4e1a21eb1fd38602 Mon Sep 17 00:00:00 2001 From: R E Broadley Date: Mon, 14 May 2012 19:39:50 +0100 Subject: Show the timestamp for the block. wrap lines --- src/db.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/db.cpp') diff --git a/src/db.cpp b/src/db.cpp index 4f4e1d84b7..2928eff006 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -570,7 +570,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); -- cgit v1.2.3