Skip to content

Commit

Permalink
Increased block capacity to 5 seconds (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToufeeqP authored Jul 23, 2024
1 parent ec9b97c commit 2de7256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ pub mod system {
const MAXIMUM_BLOCK_WEIGHT: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX);

/// We allow for 2 (temporary) seconds of compute with a 20 second average block time, with maximum proof size.
/// We allow for 5 seconds of compute with a 20 second average block time, with maximum proof size.
#[cfg(not(feature = "fast-runtime"))]
const MAXIMUM_BLOCK_WEIGHT: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX);
Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(5), u64::MAX);

parameter_types! {
pub RuntimeBlockWeights: SystemBlockWeights = SystemBlockWeights::builder()
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// Per convention: if the runtime behavior changes, increment spec_version
// and set impl_version to 0. This paramenter is typically incremented when
// there's an update to the transaction_version.
spec_version: 35,
spec_version: 36,
// The version of the implementation of the specification. Nodes can ignore this. It is only
// used to indicate that the code is different. As long as the authoring_version and the
// spec_version are the same, the code itself might have changed, but the native and Wasm
Expand Down

0 comments on commit 2de7256

Please sign in to comment.