aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-02-19 19:42:15 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2012-02-19 20:06:04 +0100
commitceaa13eff2486b5b311ead97223213c41d473092 (patch)
tree8a84e6bd149ae84dcb6d6fd51c022c4532aad1ea
parente0b8d459b189ee2b7e95a47b217e4b02bfb523b3 (diff)
downloadbitcoin-ceaa13eff2486b5b311ead97223213c41d473092.tar.xz
Report number of (dis)connected blocks in reorganization
Also report old and new best, and fork point.
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b73037fb6a..1f9cce74b7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1405,6 +1405,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;
}