From a568691c106bca40a819c411ddd846582fa8d7ee Mon Sep 17 00:00:00 2001 From: Brannon King Date: Fri, 21 Feb 2020 16:05:33 -0700 Subject: [PATCH] MaxTipAge should only apply on mainnet --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index e04673bb6..90fcdcc31 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1106,7 +1106,7 @@ bool IsInitialBlockDownload() return true; if (chainActive.Tip()->nChainWork < nMinimumChainWork) return true; - if (chainActive.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge)) + if (Params().NetworkIDString() == CBaseChainParams::MAIN && chainActive.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge)) return true; LogPrintf("Leaving InitialBlockDownload (latching to false)\n"); latchToFalse.store(true, std::memory_order_relaxed);