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