Open romanz opened 3 years ago
Note that getheaders
messages are ignored during IBD - unless the peer has download
permission:
if (m_chainman.ActiveChainstate().IsInitialBlockDownload() && !pfrom.HasPermission(NetPermissionFlags::Download)) {
LogPrint(BCLog::NET, "Ignoring getheaders from peer=%d because node is in initial block download\n", pfrom.GetId());
return;
}
It'd be great if electrs at least detected this. Ideally fall back to RPC or some other technique. IDK if whitelist affects this setting but we should probably recommend whitelisting 127.0.0.1 just like NBXplorer does (it even detects lack of whitelisting and logs a message).
Originally posted by @Kixunil in https://github.com/romanz/electrs/issues/399#issuecomment-843901638
Relevant flags:
Relevant RPC: