From 259ee09f88dbf0ce1a580d3aa93b4d82acadf8f0 Mon Sep 17 00:00:00 2001 From: R E Broadley Date: Tue, 23 Aug 2016 13:09:27 +0700 Subject: [PATCH] Show "end" instead of many zeros when getheaders request received with a hashStop of Null. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 27ab677eb..7d1686c2f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5387,7 +5387,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, // we must use CBlocks, as CBlockHeaders won't include the 0x00 nTx count at the end vector vHeaders; int nLimit = MAX_HEADERS_RESULTS; - LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString(), pfrom->id); + LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.IsNull() ? "end" : hashStop.ToString(), pfrom->id); for (; pindex; pindex = chainActive.Next(pindex)) { vHeaders.push_back(pindex->GetBlockHeader());