|
|
@ -1744,11 +1744,10 @@ bool IsInitialBlockDownload()
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
if (chainActive.Tip()->nChainWork < UintToArith256(chainParams.GetConsensus().nMinimumChainWork))
|
|
|
|
if (chainActive.Tip()->nChainWork < UintToArith256(chainParams.GetConsensus().nMinimumChainWork))
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 ||
|
|
|
|
if (chainActive.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge))
|
|
|
|
std::max(chainActive.Tip()->GetBlockTime(), pindexBestHeader->GetBlockTime()) < GetTime() - nMaxTipAge);
|
|
|
|
return true;
|
|
|
|
if (!state)
|
|
|
|
|
|
|
|
latchToFalse.store(true, std::memory_order_relaxed);
|
|
|
|
latchToFalse.store(true, std::memory_order_relaxed);
|
|
|
|
return state;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool fLargeWorkForkFound = false;
|
|
|
|
bool fLargeWorkForkFound = false;
|
|
|
|