From 3abe9b46d93d303bb089750bca6e454dd839840e Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 23 Nov 2018 05:26:25 -1100 Subject: [PATCH] +prints --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 824f76880..bc514f693 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6843,15 +6843,20 @@ fprintf(stderr,"netmsg: %s\n", strCommand.c_str()); LOCK(cs_main); if (IsInitialBlockDownload()) + { + fprintf(stderr,"dont process getheaders during initial download\n"); return true; - + } CBlockIndex* pindex = NULL; if (locator.IsNull()) { // If locator is null, return the hashStop block BlockMap::iterator mi = mapBlockIndex.find(hashStop); if (mi == mapBlockIndex.end()) + { + fprintf(stderr,"mi == end()\n"); return true; + } pindex = (*mi).second; } else @@ -6878,6 +6883,7 @@ fprintf(stderr,"netmsg: %s\n", strCommand.c_str()); if (--nLimit <= 0 || pindex->GetBlockHash() == hashStop) break; } +fprintf(stderr,"send headers\n"); pfrom->PushMessage("headers", vHeaders); } /*else if ( IS_KOMODO_NOTARY != 0 )