Skip to content

Commit a1ba077

Browse files
committed
Ignore getheaders requests when not synced.
1 parent 2cc1372 commit a1ba077

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4174,6 +4174,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
41744174

41754175
LOCK(cs_main);
41764176

4177+
if (IsInitialBlockDownload())
4178+
return true;
4179+
41774180
CBlockIndex* pindex = NULL;
41784181
if (locator.IsNull())
41794182
{

0 commit comments

Comments
 (0)