From bbada3ae990d2b17d940d8eeb96254bc2d6ff530 Mon Sep 17 00:00:00 2001 From: dnjscksdn98 Date: Thu, 26 Dec 2024 13:38:27 +0900 Subject: [PATCH 1/2] NODE-160, feat: increase 20% of block gas limit --- runtime/dev/constants/src/lib.rs | 4 ++-- runtime/mainnet/constants/src/lib.rs | 4 ++-- runtime/testnet/constants/src/lib.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/dev/constants/src/lib.rs b/runtime/dev/constants/src/lib.rs index 986ba927..78ac65a5 100644 --- a/runtime/dev/constants/src/lib.rs +++ b/runtime/dev/constants/src/lib.rs @@ -8,8 +8,8 @@ pub mod fee { /// Current approximation of the gas/s consumption considering /// EVM execution over compiled WASM (on 4.4Ghz CPU). /// Given the 500ms Weight, from which 75% only are used for transactions, - /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 50_000_000. - pub const GAS_PER_SECOND: u64 = 133_333_333; + /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 60_000_000. + pub const GAS_PER_SECOND: u64 = 160_000_000; /// Approximate ratio of the amount of Weight per Gas. /// u64 works for approximations because Weight is a very small unit compared to gas. diff --git a/runtime/mainnet/constants/src/lib.rs b/runtime/mainnet/constants/src/lib.rs index 986ba927..78ac65a5 100644 --- a/runtime/mainnet/constants/src/lib.rs +++ b/runtime/mainnet/constants/src/lib.rs @@ -8,8 +8,8 @@ pub mod fee { /// Current approximation of the gas/s consumption considering /// EVM execution over compiled WASM (on 4.4Ghz CPU). /// Given the 500ms Weight, from which 75% only are used for transactions, - /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 50_000_000. - pub const GAS_PER_SECOND: u64 = 133_333_333; + /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 60_000_000. + pub const GAS_PER_SECOND: u64 = 160_000_000; /// Approximate ratio of the amount of Weight per Gas. /// u64 works for approximations because Weight is a very small unit compared to gas. diff --git a/runtime/testnet/constants/src/lib.rs b/runtime/testnet/constants/src/lib.rs index 986ba927..78ac65a5 100644 --- a/runtime/testnet/constants/src/lib.rs +++ b/runtime/testnet/constants/src/lib.rs @@ -8,8 +8,8 @@ pub mod fee { /// Current approximation of the gas/s consumption considering /// EVM execution over compiled WASM (on 4.4Ghz CPU). /// Given the 500ms Weight, from which 75% only are used for transactions, - /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 50_000_000. - pub const GAS_PER_SECOND: u64 = 133_333_333; + /// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 60_000_000. + pub const GAS_PER_SECOND: u64 = 160_000_000; /// Approximate ratio of the amount of Weight per Gas. /// u64 works for approximations because Weight is a very small unit compared to gas. From 21fa7374515fc00d85cff615afae3dc87fb5bfcc Mon Sep 17 00:00:00 2001 From: dnjscksdn98 Date: Mon, 30 Dec 2024 13:46:38 +0900 Subject: [PATCH 2/2] NODE-160, chore: remove passed migrations and increase runtime version --- runtime/dev/src/lib.rs | 7 ++----- runtime/mainnet/src/lib.rs | 2 +- runtime/testnet/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/runtime/dev/src/lib.rs b/runtime/dev/src/lib.rs index 26e7b57d..caeeef4d 100644 --- a/runtime/dev/src/lib.rs +++ b/runtime/dev/src/lib.rs @@ -111,10 +111,7 @@ pub type UncheckedExtrinsic = fp_self_contained::UncheckedExtrinsic; /// All migrations executed on runtime upgrade as a nested tuple of types implementing `OnRuntimeUpgrade`. -type Migrations = ( - pallet_identity::migration::versioned::V0ToV1, - pallet_grandpa::migrations::MigrateV4ToV5, -); +type Migrations = (); /// Executive: handles dispatch to the various modules. pub type Executive = frame_executive::Executive< @@ -154,7 +151,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // The version of the authorship interface. authoring_version: 1, // The version of the runtime spec. - spec_version: 371, + spec_version: 372, // The version of the implementation of the spec. impl_version: 1, // A list of supported runtime APIs along with their versions. diff --git a/runtime/mainnet/src/lib.rs b/runtime/mainnet/src/lib.rs index 31b4a3f9..07adf908 100644 --- a/runtime/mainnet/src/lib.rs +++ b/runtime/mainnet/src/lib.rs @@ -148,7 +148,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // The version of the authorship interface. authoring_version: 1, // The version of the runtime spec. - spec_version: 2028, + spec_version: 2029, // The version of the implementation of the spec. impl_version: 1, // A list of supported runtime APIs along with their versions. diff --git a/runtime/testnet/src/lib.rs b/runtime/testnet/src/lib.rs index 5c538c93..01947930 100644 --- a/runtime/testnet/src/lib.rs +++ b/runtime/testnet/src/lib.rs @@ -152,7 +152,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // The version of the authorship interface. authoring_version: 1, // The version of the runtime spec. - spec_version: 478, + spec_version: 479, // The version of the implementation of the spec. impl_version: 1, // A list of supported runtime APIs along with their versions.