diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-08-26 10:04:11 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-08-26 10:04:26 +0200 |
commit | 6c9f1b8c24052134413b1a7d7d0599339daffc32 (patch) | |
tree | c972e8e06977657b0714e556a266095312d0c13e /src/main.cpp | |
parent | 53f8f226bd1d627c4a6dec5862a1d4ea5a933e45 (diff) | |
parent | 259ee09f88dbf0ce1a580d3aa93b4d82acadf8f0 (diff) |
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)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5160e60750..30edc5dbeb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5395,7 +5395,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()); |