Skip to content

Commit 6c9f1b8

Browse files
committed
Merge #8561: Show "end" instead of many zeros when getheaders request received with a hashStop of Null
259ee09 Show "end" instead of many zeros when getheaders request received with a hashStop of Null. (R E Broadley)
2 parents 53f8f22 + 259ee09 commit 6c9f1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5395,7 +5395,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
53955395
// we must use CBlocks, as CBlockHeaders won't include the 0x00 nTx count at the end
53965396
vector<CBlock> vHeaders;
53975397
int nLimit = MAX_HEADERS_RESULTS;
5398-
LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString(), pfrom->id);
5398+
LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.IsNull() ? "end" : hashStop.ToString(), pfrom->id);
53995399
for (; pindex; pindex = chainActive.Next(pindex))
54005400
{
54015401
vHeaders.push_back(pindex->GetBlockHeader());

0 commit comments

Comments
 (0)