From 1cbd79d41fd3b55c7e55fcb7544c584e6623d8fc Mon Sep 17 00:00:00 2001 From: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Date: Wed, 21 Jun 2023 16:57:05 +0200 Subject: [PATCH] Clear Existing HRMP Channel Request When Force Opening (#7389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * clear existing hrmp channel request when force opening * return unused weight * Apply suggestions from code review Co-authored-by: Bastian Köcher * fix * update weight signature to u32 --------- Co-authored-by: Bastian Köcher --- relay/kusama/src/weights/runtime_parachains_hrmp.rs | 2 +- relay/polkadot/src/weights/runtime_parachains_hrmp.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/kusama/src/weights/runtime_parachains_hrmp.rs b/relay/kusama/src/weights/runtime_parachains_hrmp.rs index 64efe63c95..c13a8413e4 100644 --- a/relay/kusama/src/weights/runtime_parachains_hrmp.rs +++ b/relay/kusama/src/weights/runtime_parachains_hrmp.rs @@ -272,7 +272,7 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpAcceptedChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpAcceptedChannelRequestCount (max_values: None, max_size: None, mode: Measured) - fn force_open_hrmp_channel() -> Weight { + fn force_open_hrmp_channel(_c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `350` // Estimated: `6290` diff --git a/relay/polkadot/src/weights/runtime_parachains_hrmp.rs b/relay/polkadot/src/weights/runtime_parachains_hrmp.rs index e2fdb821d6..82d8c30bac 100644 --- a/relay/polkadot/src/weights/runtime_parachains_hrmp.rs +++ b/relay/polkadot/src/weights/runtime_parachains_hrmp.rs @@ -282,7 +282,7 @@ impl runtime_parachains::hrmp::WeightInfo for WeightInf /// Proof Skipped: Hrmp HrmpIngressChannelsIndex (max_values: None, max_size: None, mode: Measured) /// Storage: Hrmp HrmpAcceptedChannelRequestCount (r:1 w:1) /// Proof Skipped: Hrmp HrmpAcceptedChannelRequestCount (max_values: None, max_size: None, mode: Measured) - fn force_open_hrmp_channel() -> Weight { + fn force_open_hrmp_channel(_c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `666` // Estimated: `6606`