aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-02-19 19:42:15 +0100
committerLuke Dashjr <luke-jr+git@utopios.org>2012-03-22 16:18:36 -0400
commit8ed1f7c1532fe3e67ca5f7fc7c1c920bbf297203 (patch)
tree61f52ab8080d7de39708ecfee54b55ace44015a3 /src/main.cpp
parente364ad962f40afb091db5f03a0c48342063672a0 (diff)
downloadbitcoin-8ed1f7c1532fe3e67ca5f7fc7c1c920bbf297203.tar.xz
Report number of (dis)connected blocks in reorganization
Also report old and new best, and fork point.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c2decc339d..12703621e8 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;
}