Change order of checks to skip IsInitialBlockDownload check if flag is unset.
This commit is contained in:
parent
80a658fbdf
commit
b5ad4cfc5e
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue