Change order of checks to skip IsInitialBlockDownload check if flag is unset.

This commit is contained in:
Kris Nuttycombe 2020-11-13 12:59:14 -07:00
parent 80a658fbdf
commit b5ad4cfc5e
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}