Ignore getheaders requests when not synced.
Rebased-From: a1ba0778dd3c784046dea334e5d39f37eca264f7 Github-Pull: #6172
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
75a4d512cf
commit
b4bbad18ef
@@ -4255,6 +4255,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
|
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
|
||||||
|
if (IsInitialBlockDownload())
|
||||||
|
return true;
|
||||||
|
|
||||||
CBlockIndex* pindex = NULL;
|
CBlockIndex* pindex = NULL;
|
||||||
if (locator.IsNull())
|
if (locator.IsNull())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user