Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Companion for paritytech/cumulus#1685
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong authored and Guantong committed Jan 3, 2023
1 parent bef7024 commit c8c92a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions runtime/crab/src/pallets/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight =
frame_support::weights::constants::WEIGHT_PER_SECOND.saturating_div(2);
pub const MAXIMUM_BLOCK_WEIGHT: Weight = frame_support::weights::constants::WEIGHT_PER_SECOND
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);

frame_support::parameter_types! {
pub const Version: sp_version::RuntimeVersion = VERSION;
Expand Down
5 changes: 3 additions & 2 deletions runtime/darwinia/src/pallets/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight =
frame_support::weights::constants::WEIGHT_PER_SECOND.saturating_div(2);
pub const MAXIMUM_BLOCK_WEIGHT: Weight = frame_support::weights::constants::WEIGHT_PER_SECOND
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);

frame_support::parameter_types! {
pub const Version: sp_version::RuntimeVersion = VERSION;
Expand Down
5 changes: 3 additions & 2 deletions runtime/pangolin/src/pallets/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight =
frame_support::weights::constants::WEIGHT_PER_SECOND.saturating_div(2);
pub const MAXIMUM_BLOCK_WEIGHT: Weight = frame_support::weights::constants::WEIGHT_PER_SECOND
.saturating_div(2)
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);

frame_support::parameter_types! {
pub const Version: sp_version::RuntimeVersion = VERSION;
Expand Down

0 comments on commit c8c92a1

Please sign in to comment.