Mercurial > hg > bitcoin
changeset 2850:fe0807cebb12 draft
Report number of (dis)connected blocks in reorganization
Also report old and new best, and fork point.
author | Pieter Wuille <pieter.wuille@gmail.com> |
---|---|
date | Sun, 19 Feb 2012 19:42:15 +0100 |
parents | 7bd80c7f45c3 |
children | 8bf7efd12394 |
files | src/main.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp +++ b/src/main.cpp @@ -1311,6 +1311,9 @@ BOOST_FOREACH(CTransaction& tx, vDelete) tx.RemoveFromMemoryPool(); + printf("REORGANIZE: Disconnected %i blocks; %s..%s\n", vDisconnect.size(), pfork->GetBlockHash().ToString().substr(0,20).c_str(), pindexBest->GetBlockHash().ToString().substr(0,20).c_str()); + printf("REORGANIZE: Connected %i blocks; %s..%s\n", vConnect.size(), pfork->GetBlockHash().ToString().substr(0,20).c_str(), pindexNew->GetBlockHash().ToString().substr(0,20).c_str()); + return true; }