Skip to content

Commit

Permalink
Add proof_size for MAXIMUM_BLOCK_WEIGHT, this is a hidden change in p…
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Dec 8, 2022
1 parent 14ee980 commit 630a791
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions parachains-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ xcm-executor = { git = "https://github.com/paritytech/polkadot", branch = "relea

# Cumulus dependencies
pallet-collator-selection = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.32", default-features = false }
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.32", default-features = false }

[dev-dependencies]
serde = { version = "1.0.119" }
Expand All @@ -52,6 +53,7 @@ std = [
"frame-executive/std",
"frame-system/std",
"pallet-collator-selection/std",
"cumulus-primitives-core/std",
"pallet-balances/std",
"polkadot-runtime-common/std",
"polkadot-primitives/std",
Expand Down
4 changes: 3 additions & 1 deletion parachains-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ mod constants {
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

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

/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
Expand Down

0 comments on commit 630a791

Please sign in to comment.