From fa8fa66d5597e2b7d98c9d3633f2958ae3af3709 Mon Sep 17 00:00:00 2001 From: Isaac Doidge <30425649+isaacdoidge@users.noreply.github.com> Date: Thu, 2 Jan 2025 22:37:18 +1000 Subject: [PATCH] [#160] Increased max_execution_gas.gov from 4B to 5B to enable framework upgrades. Incremented the gas schedule version accordingly. (#161) --- .../aptos-gas-schedule/src/gas_schedule/transaction.rs | 2 +- aptos-move/aptos-gas-schedule/src/ver.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/aptos-move/aptos-gas-schedule/src/gas_schedule/transaction.rs b/aptos-move/aptos-gas-schedule/src/gas_schedule/transaction.rs index 65e8015eb913e..2a2006786b73d 100644 --- a/aptos-move/aptos-gas-schedule/src/gas_schedule/transaction.rs +++ b/aptos-move/aptos-gas-schedule/src/gas_schedule/transaction.rs @@ -212,7 +212,7 @@ crate::gas_schedule::macros::define_gas_parameters!( [ max_execution_gas_gov: InternalGas, { RELEASE_V1_13.. => "max_execution_gas.gov" }, - 4_000_000_000, + 5_000_000_000, ], [ max_io_gas: InternalGas, diff --git a/aptos-move/aptos-gas-schedule/src/ver.rs b/aptos-move/aptos-gas-schedule/src/ver.rs index 3951385af5187..0c01210e0c23a 100644 --- a/aptos-move/aptos-gas-schedule/src/ver.rs +++ b/aptos-move/aptos-gas-schedule/src/ver.rs @@ -8,6 +8,10 @@ /// - Changing how gas is calculated in any way /// /// Change log: +/// - V22 +/// - Increased governance transaction execution limit from 4B to 5B to enable framework upgrades without changing +/// the gas schedule. +/// - Updated the `pbo_delegation_pool.move` and `vesting_without_staking.move` smart contracts (not gas-related). /// - V21 /// - Fix type to type tag conversion in MoveVM /// - V20 @@ -66,7 +70,7 @@ /// global operations. /// - V1 /// - TBA -pub const LATEST_GAS_FEATURE_VERSION: u64 = gas_feature_versions::RELEASE_V1_16; +pub const LATEST_GAS_FEATURE_VERSION: u64 = gas_feature_versions::RELEASE_V1_16_SUPRA_V1_5_1; pub mod gas_feature_versions { pub const RELEASE_V1_8: u64 = 11; @@ -79,4 +83,5 @@ pub mod gas_feature_versions { pub const RELEASE_V1_14: u64 = 19; pub const RELEASE_V1_15: u64 = 20; pub const RELEASE_V1_16: u64 = 21; + pub const RELEASE_V1_16_SUPRA_V1_5_1: u64 = 22; }