@@ -245,10 +245,6 @@ pub mod pallet {
245245 /// [`consensus_hook::ExpectParentIncluded`] here. This is only necessary in the case
246246 /// that collators aren't expected to have node versions that supply the included block
247247 /// in the relay-chain state proof.
248- ///
249- /// This config type is only available when the `parameterized-consensus-hook` crate feature
250- /// is activated.
251- #[ cfg( feature = "parameterized-consensus-hook" ) ]
252248 type ConsensusHook : ConsensusHook ;
253249 }
254250
@@ -556,10 +552,8 @@ pub mod pallet {
556552 . expect ( "Invalid relay chain state proof" ) ;
557553
558554 // Update the desired maximum capacity according to the consensus hook.
559- #[ cfg( feature = "parameterized-consensus-hook" ) ]
560- let ( consensus_hook_weight, capacity) = T :: ConsensusHook :: on_state_proof ( & relay_state_proof) ;
561- #[ cfg( not( feature = "parameterized-consensus-hook" ) ) ]
562- let ( consensus_hook_weight, capacity) = ExpectParentIncluded :: on_state_proof ( & relay_state_proof) ;
555+ let ( consensus_hook_weight, capacity) =
556+ T :: ConsensusHook :: on_state_proof ( & relay_state_proof) ;
563557 total_weight += consensus_hook_weight;
564558 total_weight += Self :: maybe_drop_included_ancestors ( & relay_state_proof, capacity) ;
565559 // Deposit a log indicating the relay-parent storage root.
@@ -1639,10 +1633,8 @@ impl<T: Config> polkadot_runtime_common::xcm_sender::EnsureForParachain for Pall
16391633}
16401634
16411635/// Something that can check the inherents of a block.
1642- #[ cfg_attr(
1643- feature = "parameterized-consensus-hook" ,
1644- deprecated = "consider switching to `cumulus-pallet-parachain-system::ConsensusHook`"
1645- ) ]
1636+ #[ deprecated( note = "This trait is deprecated and will be removed by September 2024. \
1637+ Consider switching to `cumulus-pallet-parachain-system::ConsensusHook`") ]
16461638pub trait CheckInherents < Block : BlockT > {
16471639 /// Check all inherents of the block.
16481640 ///
0 commit comments