@@ -987,7 +987,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
987987 // The mempool holds txs for the next block, so pass height+1 to CheckTxInputs
988988 const auto block_height_current = m_active_chainstate.m_chain .Height ();
989989 const auto block_height_next = block_height_current + 1 ;
990- if (!Consensus::CheckTxInputs (tx, state, m_view, block_height_next, ws.m_base_fees , CheckTxInputsRules::OutputSizeLimit)) {
990+ if (!Consensus::CheckTxInputs (tx, state, m_view, block_height_next, ws.m_base_fees , CheckTxInputsRules{CheckTxInputsRules ::OutputSizeLimit} | CheckTxInputsRules{args. m_chainparams . GetConsensus (). signet_blocks ? CheckTxInputsRules::SignetCoinbaseExemption : CheckTxInputsRules::None} )) {
991991 return false ; // state filled in by CheckTxInputs
992992 }
993993
@@ -2903,12 +2903,12 @@ bool Chainstate::ConnectBlock(const CBlock& block, BlockValidationState& state,
29032903 ? m_chainman.m_versionbitscache .StateSinceHeight (pindex->pprev , params.GetConsensus (), Consensus::DEPLOYMENT_REDUCED_DATA )
29042904 : std::numeric_limits<int >::max ();
29052905
2906- const CheckTxInputsRules chk_input_rules{DeploymentActiveAt (*pindex, m_chainman, Consensus::DEPLOYMENT_REDUCED_DATA ) ? CheckTxInputsRules::OutputSizeLimit : CheckTxInputsRules::None};
2906+ const CheckTxInputsRules chk_input_rules{CheckTxInputsRules{ DeploymentActiveAt (*pindex, m_chainman, Consensus::DEPLOYMENT_REDUCED_DATA ) ? CheckTxInputsRules::OutputSizeLimit : CheckTxInputsRules::None} | CheckTxInputsRules{params. GetConsensus (). signet_blocks ? CheckTxInputsRules::SignetCoinbaseExemption : CheckTxInputsRules::None} };
29072907
29082908 // Check generation tx output sizes if REDUCED_DATA is active
29092909 if (chk_input_rules.test (CheckTxInputsRules::OutputSizeLimit)) {
29102910 TxValidationState tx_state;
2911- if (!Consensus::CheckOutputSizes (*block.vtx [0 ], tx_state)) {
2911+ if (!Consensus::CheckOutputSizes (*block.vtx [0 ], tx_state, params. GetConsensus (). signet_blocks )) {
29122912 return state.Invalid (BlockValidationResult::BLOCK_CONSENSUS ,
29132913 tx_state.GetRejectReason (),
29142914 tx_state.GetDebugMessage () + " in generation tx " + block.vtx [0 ]->GetHash ().ToString ());
0 commit comments