Ignore getheaders requests when not synced.

Rebased-From: a1ba0778dd3c784046dea334e5d39f37eca264f7
Github-Pull: #6172
This commit is contained in:
Suhas Daftuar 2015-05-21 13:29:09 -04:00 committed by Wladimir J. van der Laan
parent 75a4d512cf
commit b4bbad18ef
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 3 additions and 0 deletions

View File

@ -4255,6 +4255,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
LOCK(cs_main);
if (IsInitialBlockDownload())
return true;
CBlockIndex* pindex = NULL;
if (locator.IsNull())
{