From 455ff66694c0c7f65b9877c4e18e42bd4dfd277b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 22 Mar 2016 13:30:38 -0700 Subject: [PATCH] Respond to getheaders even in IBD mode This should fix an issue which would crop up if we ever needed to pause the chain for a period of time - namely that nodes would not sync again afterwards if they restarted during the pause. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3137d96270..db5ad4f8a9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5629,10 +5629,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, vRecv >> locator >> hashStop; LOCK(cs_main); - if (IsInitialBlockDownload() && !pfrom->fWhitelisted) { + /*if (IsInitialBlockDownload() && !pfrom->fWhitelisted) { LogPrint("net", "Ignoring getheaders from peer=%d because node is in initial block download\n", pfrom->id); return true; - } + }*/ CNodeState *nodestate = State(pfrom->GetId()); CBlockIndex* pindex = NULL;