diff options
| author | Jeff Garzik <[email protected]> | 2012-07-05 15:28:42 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-07-05 15:28:42 -0700 |
| commit | 6e3a1a374293a8a5adeb2ad464f7205e819585ee (patch) | |
| tree | 50cc8d6cf558c68f63bcccc74342da14154f2f12 /src/db.cpp | |
| parent | bitcoinrpc.cpp: Removed outdated comment (diff) | |
| parent | Show the timestamp for the block. (diff) | |
| download | discoin-6e3a1a374293a8a5adeb2ad464f7205e819585ee.tar.xz discoin-6e3a1a374293a8a5adeb2ad464f7205e819585ee.zip | |
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 ecdf32a8f..e494d28e3 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); |