We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba37b7 commit 29345e9Copy full SHA for 29345e9
src/net_processing.cpp
@@ -910,6 +910,10 @@ bool PeerManagerImpl::TipMayBeStale()
910
911
bool PeerManagerImpl::CanDirectFetch()
912
{
913
+ if(!m_chainman.ActiveChain().Tip()) {
914
+ LogPrint(BCLog::NET, "Startup crash avoided\n");
915
+ return false;
916
+ }
917
return m_chainman.ActiveChain().Tip()->GetBlockTime() > GetAdjustedTime() - m_chainparams.GetConsensus().nPowTargetSpacing * 20;
918
}
919
0 commit comments