From: Pieter Wuille Date: Sun, 19 Feb 2012 18:42:15 +0000 (+0100) Subject: Report number of (dis)connected blocks in reorganization X-Git-Tag: v0.4.0-unstable~129^2~1^2^2~2^2^2~44 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=8ed1f7c1532fe3e67ca5f7fc7c1c920bbf297203 Report number of (dis)connected blocks in reorganization Also report old and new best, and fork point. --- diff --git a/src/main.cpp b/src/main.cpp index c2decc3..1270362 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1311,6 +1311,9 @@ bool static Reorganize(CTxDB& txdb, CBlockIndex* pindexNew) 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; }