MaxTipAge should only apply on mainnet
This commit is contained in:
parent
7fcb767c7a
commit
ed26eb347f
1 changed files with 1 additions and 1 deletions
|
@ -1401,7 +1401,7 @@ bool CChainState::IsInitialBlockDownload() const
|
|||
return true;
|
||||
if (m_chain.Tip()->nChainWork < nMinimumChainWork)
|
||||
return true;
|
||||
if (m_chain.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge))
|
||||
if (m_chain.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge) && Params().NetworkIDString() == CBaseChainParams::MAIN)
|
||||
return true;
|
||||
LogPrintf("Leaving InitialBlockDownload (latching to false)\n");
|
||||
m_cached_finished_ibd.store(true, std::memory_order_relaxed);
|
||||
|
|
Loading…
Add table
Reference in a new issue