Browse Source

Merge pull request #6974

40b77d4 Always allow getheaders from whitelisted peers (Wladimir J. van der Laan)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
2f71b07d5e
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/main.cpp

6
src/main.cpp

@ -4317,10 +4317,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
vRecv >> locator >> hashStop; vRecv >> locator >> hashStop;
LOCK(cs_main); LOCK(cs_main);
if (IsInitialBlockDownload() && !pfrom->fWhitelisted) {
if (IsInitialBlockDownload()) LogPrint("net", "Ignoring getheaders from peer=%d because node is in initial block download\n", pfrom->id);
return true; return true;
}
CBlockIndex* pindex = NULL; CBlockIndex* pindex = NULL;
if (locator.IsNull()) if (locator.IsNull())
{ {

Loading…
Cancel
Save