Skip to content

Commit

Permalink
Change order of checks to skip IsInitialBlockDownload check if flag i…
Browse files Browse the repository at this point in the history
…s unset.
  • Loading branch information
nuttycom committed Nov 13, 2020
1 parent 80a658f commit b5ad4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit b5ad4cf

Please sign in to comment.