Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NODE-160, feat: increase block gas limit #104

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/dev/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 2 additions & 5 deletions runtime/dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ pub type UncheckedExtrinsic =
fp_self_contained::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;

/// All migrations executed on runtime upgrade as a nested tuple of types implementing `OnRuntimeUpgrade`.
type Migrations = (
pallet_identity::migration::versioned::V0ToV1<Runtime, { u64::MAX }>,
pallet_grandpa::migrations::MigrateV4ToV5<Runtime>,
);
type Migrations = ();

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions runtime/mainnet/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion runtime/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions runtime/testnet/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down