mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Respond to getheaders even in IBD mode
This should fix an issue which would crop up if we ever needed to pause the chain for a period of time - namely that nodes would not sync again afterwards if they restarted during the pause.
This commit is contained in:
parent
dff6b024dd
commit
455ff66694
1 changed files with 2 additions and 2 deletions
|
|
@ -5629,10 +5629,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||
vRecv >> locator >> hashStop;
|
||||
|
||||
LOCK(cs_main);
|
||||
if (IsInitialBlockDownload() && !pfrom->fWhitelisted) {
|
||||
/*if (IsInitialBlockDownload() && !pfrom->fWhitelisted) {
|
||||
LogPrint("net", "Ignoring getheaders from peer=%d because node is in initial block download\n", pfrom->id);
|
||||
return true;
|
||||
}
|
||||
}*/
|
||||
|
||||
CNodeState *nodestate = State(pfrom->GetId());
|
||||
CBlockIndex* pindex = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue