diff --git a/src/main.cpp b/src/main.cpp index b86b59dfb..df8207e4c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2746,9 +2746,9 @@ static int64_t nTimeTotal = 0; * - the block under inspection is an ancestor of the latest checkpoint. */ static bool ShouldCheckTransactions(const CChainParams& chainparams, const CBlockIndex* pindex) { - return !(IsInitialBlockDownload(chainparams) - && fIBDSkipTxVerification + return !(fIBDSkipTxVerification && fCheckpointsEnabled + && IsInitialBlockDownload(chainparams) && Checkpoints::IsAncestorOfLastCheckpoint(chainparams.Checkpoints(), pindex)); }