Skip to content

Commit

Permalink
Fix #388 - Increase scheduler pallet’s maximumSchedulerWeight to fix …
Browse files Browse the repository at this point in the history
…Democracy problem (#422)

* Increase scheduler pallet’s maximumSchedulerWeight to fix Democracy weight limit too low problem

* Update the MaximumSchedulerWeight for Neumann and OAK too

---------

Co-authored-by: chrisli30 <[email protected]>
  • Loading branch information
imstar15 and chrisli30 authored Sep 13, 2023
1 parent 7c7a01f commit 94045af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/neumann/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ impl pallet_preimage::Config for Runtime {
}

parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(10) * RuntimeBlockWeights::get().max_block;
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(40) * RuntimeBlockWeights::get().max_block;
pub const NoPreimagePostponement: Option<u32> = Some(10);
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/oak/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ impl pallet_preimage::Config for Runtime {
}

parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(10) * RuntimeBlockWeights::get().max_block;
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(40) * RuntimeBlockWeights::get().max_block;
pub const NoPreimagePostponement: Option<u32> = Some(10);
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/turing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ impl pallet_preimage::Config for Runtime {
}

parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(10) * RuntimeBlockWeights::get().max_block;
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(40) * RuntimeBlockWeights::get().max_block;
pub const NoPreimagePostponement: Option<u32> = Some(10);
}

Expand Down

0 comments on commit 94045af

Please sign in to comment.