aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorR E Broadley <rebroad+github@gmail.com>2016-08-23 13:09:27 +0700
committerR E Broadley <rebroad+github@gmail.com>2016-08-23 13:14:07 +0700
commit259ee09f88dbf0ce1a580d3aa93b4d82acadf8f0 (patch)
treeb4d7833a72e0edd08a3f0a5812aca35a3eb07f65 /src/main.cpp
parent41d8e78f94c5ad54684f1f15efb0264036418e71 (diff)
Show "end" instead of many zeros when getheaders request received with a hashStop of Null.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 27ab677eb1..7d1686c2fa 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<CBlock> 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());