diff --git a/runtime/parachains/src/mock.rs b/runtime/parachains/src/mock.rs index 3148263703db..f1a6c27f5a29 100644 --- a/runtime/parachains/src/mock.rs +++ b/runtime/parachains/src/mock.rs @@ -316,6 +316,12 @@ impl pallet_message_queue::WeightInfo for TestMessageQueueWeight { fn execute_overweight_page_updated() -> Weight { Weight::zero() } + fn discard_overweight_page_removed() -> Weight { + Weight::zero() + } + fn discard_overweight_page_updated() -> Weight { + Weight::zero() + } } parameter_types! { pub const MessageQueueServiceWeight: Weight = Weight::from_all(500); @@ -328,6 +334,10 @@ impl pallet_message_queue::Config for Test { type RuntimeEvent = RuntimeEvent; type WeightInfo = TestMessageQueueWeight; type MessageProcessor = TestProcessMessage; + type DiscardOverweightOrigin = frame_support::traits::AsEnsureOriginWithContains< + frame_system::EnsureRoot, + frame_support::traits::Everything, + >; type QueueChangeHandler = ParaInclusion; type HeapSize = ConstU32<65536>; type MaxStale = ConstU32<8>; diff --git a/runtime/rococo/src/weights/pallet_message_queue.rs b/runtime/rococo/src/weights/pallet_message_queue.rs index 109125e22709..732a97a01129 100644 --- a/runtime/rococo/src/weights/pallet_message_queue.rs +++ b/runtime/rococo/src/weights/pallet_message_queue.rs @@ -45,6 +45,9 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_message_queue`. pub struct WeightInfo(PhantomData); impl pallet_message_queue::WeightInfo for WeightInfo { + fn discard_overweight_page_removed() -> Weight { Weight::MAX } // FAIL-CI + fn discard_overweight_page_updated() -> Weight { Weight::MAX } // FAIL-CI + /// Storage: MessageQueue ServiceHead (r:1 w:0) /// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen) /// Storage: MessageQueue BookStateFor (r:2 w:2)