diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index 60148a09f..f1afeec1a 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -549,7 +549,7 @@ impl BlockWeights { Some(Weight::zero()) }; WeightsPerClass { - base_extrinsic: constants::ExtrinsicBaseWeight::get(), + base_extrinsic: constants::ExtrinsicBaseWeight::get().saturating_mul(100), max_extrinsic: None, max_total: initial, reserved: initial, diff --git a/runtime/src/constants.rs b/runtime/src/constants.rs index e9b1eee33..292d3adaa 100644 --- a/runtime/src/constants.rs +++ b/runtime/src/constants.rs @@ -131,16 +131,17 @@ pub mod system { const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); - /// We allow for 5 seconds of compute with a 20 second average block time, with maximum proof size. + /// We allow for 2 (temporary) 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(5), u64::MAX); + Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); parameter_types! { pub RuntimeBlockWeights: SystemBlockWeights = SystemBlockWeights::builder() .base_block(BlockExecutionWeight::get()) .for_class(DispatchClass::all(), |weights| { - weights.base_extrinsic = ExtrinsicBaseWeight::get(); + // Note: To make min tx cost at least 0.1 AVAIL, BaseWeight has been increased by 100x + weights.base_extrinsic = ExtrinsicBaseWeight::get().saturating_mul(100); }) .for_class(DispatchClass::Normal, |weights| { weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT); diff --git a/runtime/src/version.rs b/runtime/src/version.rs index 7bfb35849..2446cc4fc 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: 25, + spec_version: 26, // 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