Respond to getheaders even in IBD mode

This commit is contained in:
Gregory Sanders 2017-05-25 13:07:37 -04:00
parent 5f88da386c
commit 405363c75e

View file

@ -1717,10 +1717,10 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
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());
const CBlockIndex* pindex = NULL;