From 1cf7eedce4f079aae0bc15df1c0aa78d44b2a83f Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Wed, 11 Sep 2024 08:41:28 +0800 Subject: [PATCH] update --- modules/homa/src/weights.rs | 4 ++++ runtime/acala/src/weights/module_homa.rs | 2 ++ runtime/karura/src/weights/module_homa.rs | 2 ++ runtime/mandala/src/weights/module_homa.rs | 2 ++ 4 files changed, 10 insertions(+) diff --git a/modules/homa/src/weights.rs b/modules/homa/src/weights.rs index 9f1c44d4f..ca603bcee 100644 --- a/modules/homa/src/weights.rs +++ b/modules/homa/src/weights.rs @@ -95,7 +95,9 @@ impl WeightInfo for AcalaWeight { fn on_initialize_with_bump_era(n: u32,) -> Weight { Weight::from_parts(253_506_000, 0) .saturating_add(T::DbWeight::get().reads(31 as u64)) + .saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(n as u64))) .saturating_add(T::DbWeight::get().writes(18 as u64)) + .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(n as u64))) } // Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1) // Storage: Homa TotalStakingBonded (r:1 w:0) @@ -198,7 +200,9 @@ impl WeightInfo for () { fn on_initialize_with_bump_era(n: u32,) -> Weight { Weight::from_parts(253_506_000, 0) .saturating_add(RocksDbWeight::get().reads(31 as u64)) + .saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(n as u64))) .saturating_add(RocksDbWeight::get().writes(18 as u64)) + .saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(n as u64))) } fn mint() -> Weight { Weight::from_parts(88_950_000, 0) diff --git a/runtime/acala/src/weights/module_homa.rs b/runtime/acala/src/weights/module_homa.rs index a8b866b69..a01452e04 100644 --- a/runtime/acala/src/weights/module_homa.rs +++ b/runtime/acala/src/weights/module_homa.rs @@ -118,7 +118,9 @@ impl module_homa::WeightInfo for WeightInfo { // Minimum execution time: 298_418 nanoseconds. Weight::from_parts(305_164_000, 13851) .saturating_add(T::DbWeight::get().reads(32)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(18)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) } // Storage: `Homa::TotalStakingBonded` (r:1 w:0) // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) diff --git a/runtime/karura/src/weights/module_homa.rs b/runtime/karura/src/weights/module_homa.rs index bd820e329..498676d41 100644 --- a/runtime/karura/src/weights/module_homa.rs +++ b/runtime/karura/src/weights/module_homa.rs @@ -118,7 +118,9 @@ impl module_homa::WeightInfo for WeightInfo { // Minimum execution time: 314_492 nanoseconds. Weight::from_parts(320_994_000, 13852) .saturating_add(T::DbWeight::get().reads(34)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(19)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) } // Storage: `Homa::TotalStakingBonded` (r:1 w:0) // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) diff --git a/runtime/mandala/src/weights/module_homa.rs b/runtime/mandala/src/weights/module_homa.rs index 734bac3f2..cd48d1dec 100644 --- a/runtime/mandala/src/weights/module_homa.rs +++ b/runtime/mandala/src/weights/module_homa.rs @@ -116,7 +116,9 @@ impl module_homa::WeightInfo for WeightInfo { // Minimum execution time: 207_924 nanoseconds. Weight::from_parts(215_712_000, 14947) .saturating_add(T::DbWeight::get().reads(31)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(18)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) } // Storage: `Homa::TotalStakingBonded` (r:1 w:0) // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)