mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
backport 8aa722609d
(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