Skip to content

Commit 259ee09

Browse files
committed
Show "end" instead of many zeros when getheaders request received with a hashStop of Null.
1 parent 41d8e78 commit 259ee09

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
@@ -5387,7 +5387,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
53875387
// we must use CBlocks, as CBlockHeaders won't include the 0x00 nTx count at the end
53885388
vector<CBlock> vHeaders;
53895389
int nLimit = MAX_HEADERS_RESULTS;
5390-
LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString(), pfrom->id);
5390+
LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.IsNull() ? "end" : hashStop.ToString(), pfrom->id);
53915391
for (; pindex; pindex = chainActive.Next(pindex))
53925392
{
53935393
vHeaders.push_back(pindex->GetBlockHeader());

0 commit comments

Comments
 (0)