add force_batch weight entry to runtimes (#5452)

This commit is contained in:
Jun Jiang
2022-05-05 22:39:30 +08:00
committed by GitHub
parent 3a01f0697f
commit 2e1a3441f9
5 changed files with 203 additions and 175 deletions
@@ -63,4 +63,11 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
fn dispatch_as() -> Weight {
(9_330_000 as Weight)
}
fn force_batch(c: u32, ) -> Weight {
(13_470_000 as Weight)
// Standard Error: 1_000
.saturating_add((4_229_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}