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.
This commit is contained in:
Matt Corallo 2016-03-22 13:30:38 -07:00 committed by Gregory Sanders
parent dff6b024dd
commit 455ff66694

View file

@ -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;