From 23d64918be3ca68413050383c5d8a73f63d451dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=B3nal=20Murray?= <donal.murray@parity.io> Date: Fri, 22 Sep 2023 11:46:00 +0100 Subject: [PATCH] Fix downward message size issue in HRMP benchmark Increase max_downward_message_size to fix force_clean_hrmp benchmark issue. Increased to 1024. Previously it was inheriting the tests config of 8, which was too small for the message struct. 1KiB randomly chosen as a reasonable number which won't present issues for small changes to the message format. --- polkadot/runtime/parachains/src/hrmp/benchmarking.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polkadot/runtime/parachains/src/hrmp/benchmarking.rs b/polkadot/runtime/parachains/src/hrmp/benchmarking.rs index 86c63b3fc90..26a7de66253 100644 --- a/polkadot/runtime/parachains/src/hrmp/benchmarking.rs +++ b/polkadot/runtime/parachains/src/hrmp/benchmarking.rs @@ -208,6 +208,9 @@ mod benchmarks { assert_ok!( Configuration::<T>::set_hrmp_max_parachain_inbound_channels(frame_system::RawOrigin::Root.into(), i + 1) ); + assert_ok!( + Configuration::<T>::set_max_downward_message_size(frame_system::RawOrigin::Root.into(), 1024) + ); // .. and enact it. Configuration::<T>::initializer_on_new_session(&Shared::<T>::scheduled_session()); -- GitLab