aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorR E Broadley <rebroad+github@gmail.com>2014-09-05 22:32:22 +0700
committerPieter Wuille <pieter.wuille@gmail.com>2014-10-14 15:42:01 -0700
commit1af838b3393ac3d4f6b75ef56f907cb760695952 (patch)
tree0322fbbf47b6bd8c233fbb3d2f366758db83e1fd /src
parent1bcee67ee780bc44d22b2e44783a04bc330d4f1f (diff)
Add height to "Requesting block" debug
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c5ad82c14e..a2e50b2934 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4465,7 +4465,8 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
BOOST_FOREACH(CBlockIndex *pindex, vToDownload) {
vGetData.push_back(CInv(MSG_BLOCK, pindex->GetBlockHash()));
MarkBlockAsInFlight(pto->GetId(), pindex->GetBlockHash(), pindex);
- LogPrint("net", "Requesting block %s peer=%d\n", pindex->GetBlockHash().ToString(), pto->id);
+ LogPrint("net", "Requesting block %s (%d) peer=%d\n", pindex->GetBlockHash().ToString(),
+ pindex->nHeight, pto->id);
}
if (state.nBlocksInFlight == 0 && staller != -1) {
if (State(staller)->nStallingSince == 0) {