Clear Existing HRMP Channel Request When Force Opening (#7389)

* clear existing hrmp channel request when force opening

* return unused weight

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <git@kchr.de>

* fix

* update weight signature to u32

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
joe petrowski
2023-06-21 16:57:05 +02:00
committed by GitHub
parent 02d3fd025d
commit c206d9b375
7 changed files with 98 additions and 12 deletions
@@ -272,7 +272,7 @@ impl<T: frame_system::Config> 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`