Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add on_initialize_base_with_launch_period
  • Loading branch information
zjb0807 committed Sep 29, 2021
commit fc87bd9f130dd7d92d0cae9477e47433d7d0375f
7 changes: 7 additions & 0 deletions runtime/kusama/src/weights/pallet_democracy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions runtime/polkadot/src/weights/pallet_democracy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down