backport 8aa722609d7e736b3a3763e15b552795b94f0e9b (IBD fix)
This commit is contained in:
parent
b8557662d3
commit
04d82025d8
@ -1817,7 +1817,7 @@ bool IsInitialBlockDownload()
|
||||
if (fCheckpointsEnabled && chainActive.Height() < Checkpoints::GetTotalBlocksEstimate(chainParams.Checkpoints()))
|
||||
return true;
|
||||
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 ||
|
||||
pindexBestHeader->GetBlockTime() < GetTime() - chainParams.MaxTipAge());
|
||||
std::max(chainActive.Tip()->GetBlockTime(), pindexBestHeader->GetBlockTime()) < GetTime() - chainParams.MaxTipAge());
|
||||
if (!state)
|
||||
lockIBDState = true;
|
||||
return state;
|
||||
|
Loading…
Reference in New Issue
Block a user