Skip to content

Commit 2f71b07

Browse files
committed
Merge pull request #6974
40b77d4 Always allow getheaders from whitelisted peers (Wladimir J. van der Laan)
2 parents c974306 + 40b77d4 commit 2f71b07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4317,10 +4317,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
43174317
vRecv >> locator >> hashStop;
43184318

43194319
LOCK(cs_main);
4320-
4321-
if (IsInitialBlockDownload())
4320+
if (IsInitialBlockDownload() && !pfrom->fWhitelisted) {
4321+
LogPrint("net", "Ignoring getheaders from peer=%d because node is in initial block download\n", pfrom->id);
43224322
return true;
4323-
4323+
}
43244324
CBlockIndex* pindex = NULL;
43254325
if (locator.IsNull())
43264326
{

0 commit comments

Comments
 (0)