Companion for substrate PR#9890 (#3961)

* add on_initialize_base_with_launch_period

* trigger GitHub actions

* cargo update -p sp-io

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
zjb0807
2021-09-30 22:08:46 +08:00
committed by GitHub
parent 72eab56e88
commit fb9656489a
3 changed files with 198 additions and 161 deletions
+184 -161
View File
File diff suppressed because it is too large Load Diff
@@ -129,6 +129,13 @@ impl<T: frame_system::Config> pallet_democracy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
}
fn on_initialize_base_with_launch_period(r: u32) -> Weight {
(7_295_000 as Weight)
// Standard Error: 4_000
.saturating_add((5_093_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
}
fn delegate(r: u32) -> Weight {
(54_128_000 as Weight)
// Standard Error: 5_000
@@ -129,6 +129,13 @@ impl<T: frame_system::Config> pallet_democracy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
}
fn on_initialize_base_with_launch_period(r: u32) -> Weight {
(7_728_000 as Weight)
// Standard Error: 4_000
.saturating_add((5_099_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
}
fn delegate(r: u32) -> Weight {
(53_667_000 as Weight)
// Standard Error: 4_000