From 2de7256e7fff63ea8f334741174d55ea9ec16df6 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha <47236805+ToufeeqP@users.noreply.github.com> Date: Tue, 23 Jul 2024 19:26:19 +0530 Subject: [PATCH] Increased block capacity to 5 seconds (#618) --- runtime/src/constants.rs | 4 ++-- runtime/src/version.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/src/constants.rs b/runtime/src/constants.rs index 292d3adaa..8d6071914 100644 --- a/runtime/src/constants.rs +++ b/runtime/src/constants.rs @@ -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() diff --git a/runtime/src/version.rs b/runtime/src/version.rs index 50d484091..f4567b603 100644 --- a/runtime/src/version.rs +++ b/runtime/src/version.rs @@ -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