# MutantHub mutant #3798: Mempool enforces the BIP54 sigops limit only when the deployment is active at the tip
# Repository: bitcoin/bitcoin @ 3f0f142b1d0d08a18152d6b100e12d1abf09d58e
# File: src/validation.cpp:894-894
# Review: APPROVED; outcome: SURVIVED
diff --git a/src/validation.cpp b/src/validation.cpp
index 65b652d..3fdcaa9 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -891,7 +891,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
     }
 
     // The mempool holds txs for the next block, so pass height+1 to CheckTxInputs
-    if (!Consensus::CheckTxInputs(tx, state, m_view, m_active_chainstate.m_chain.Height() + 1, ws.m_base_fees, /*enforce_bip54=*/true)) {
+    if (!Consensus::CheckTxInputs(tx, state, m_view, m_active_chainstate.m_chain.Height() + 1, ws.m_base_fees, /*enforce_bip54=*/DeploymentActiveAfter(m_active_chainstate.m_chain.Tip(), m_active_chainstate.m_chainman, Consensus::DEPLOYMENT_CONSENSUSCLEANUP))) {
         return false; // state filled in by CheckTxInputs
     }
