@@ -2570,7 +2570,7 @@ static bool ActivateBestChainStep(CValidationState& state, const CChainParams& c
25702570 }
25712571
25722572 if (fBlocksDisconnected ) {
2573- mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 );
2573+ mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 , STANDARD_LOCKTIME_VERIFY_FLAGS );
25742574 mempool.TrimToSize (GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 );
25752575 }
25762576 mempool.check (pcoinsTip);
@@ -2681,7 +2681,7 @@ bool InvalidateBlock(CValidationState& state, const Consensus::Params& consensus
26812681 // ActivateBestChain considers blocks already in chainActive
26822682 // unconditionally valid already, so force disconnect away from it.
26832683 if (!DisconnectTip (state, consensusParams)) {
2684- mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 );
2684+ mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 , STANDARD_LOCKTIME_VERIFY_FLAGS );
26852685 return false ;
26862686 }
26872687 }
@@ -2699,7 +2699,7 @@ bool InvalidateBlock(CValidationState& state, const Consensus::Params& consensus
26992699 }
27002700
27012701 InvalidChainFound (pindex);
2702- mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 );
2702+ mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 , STANDARD_LOCKTIME_VERIFY_FLAGS );
27032703 return true ;
27042704}
27052705
0 commit comments