Skip to content

Commit

Permalink
Merge pull request #6974
Browse files Browse the repository at this point in the history
40b77d4 Always allow getheaders from whitelisted peers (Wladimir J. van der Laan)
  • Loading branch information
laanwj committed Nov 11, 2015
2 parents c974306 + 40b77d4 commit 2f71b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4317,10 +4317,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
vRecv >> locator >> hashStop;

LOCK(cs_main);

if (IsInitialBlockDownload())
if (IsInitialBlockDownload() && !pfrom->fWhitelisted) {
LogPrint("net", "Ignoring getheaders from peer=%d because node is in initial block download\n", pfrom->id);
return true;

}
CBlockIndex* pindex = NULL;
if (locator.IsNull())
{
Expand Down

0 comments on commit 2f71b07

Please sign in to comment.