Skip to content

Commit 1af838b

Browse files
rebroadsipa
authored andcommitted
Add height to "Requesting block" debug
1 parent 1bcee67 commit 1af838b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4465,7 +4465,8 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
44654465
BOOST_FOREACH(CBlockIndex *pindex, vToDownload) {
44664466
vGetData.push_back(CInv(MSG_BLOCK, pindex->GetBlockHash()));
44674467
MarkBlockAsInFlight(pto->GetId(), pindex->GetBlockHash(), pindex);
4468-
LogPrint("net", "Requesting block %s peer=%d\n", pindex->GetBlockHash().ToString(), pto->id);
4468+
LogPrint("net", "Requesting block %s (%d) peer=%d\n", pindex->GetBlockHash().ToString(),
4469+
pindex->nHeight, pto->id);
44694470
}
44704471
if (state.nBlocksInFlight == 0 && staller != -1) {
44714472
if (State(staller)->nStallingSince == 0) {

0 commit comments

Comments
 (0)