From fa6065c79e0364511c5a89cb3eb476c466f7432f Mon Sep 17 00:00:00 2001 From: Shio Coder Date: Tue, 31 Dec 2024 08:17:46 +0800 Subject: [PATCH] Remove max gas price change --- crates/sui-protocol-config/src/lib.rs | 6 +----- .../sui_protocol_config__test__Testnet_version_71.snap | 2 +- .../snapshots/sui_protocol_config__test__version_71.snap | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/sui-protocol-config/src/lib.rs b/crates/sui-protocol-config/src/lib.rs index 50eb2421431b3..12eeda60cb939 100644 --- a/crates/sui-protocol-config/src/lib.rs +++ b/crates/sui-protocol-config/src/lib.rs @@ -203,7 +203,7 @@ const MAX_PROTOCOL_VERSION: u64 = 71; // Add new gas model version to update charging of native functions. // Add std::uq64_64 module to Move stdlib. // Improve gas/wall time efficiency of some Move stdlib vector functions -// Version 71: [SIP-45] Increase max gas price to 1T. Enable consensus amplification. +// Version 71: [SIP-45] Enable consensus amplification. #[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] pub struct ProtocolVersion(u64); @@ -3092,10 +3092,6 @@ impl ProtocolConfig { cfg.validator_validate_metadata_cost_base = Some(20000); } 71 => { - if chain != Chain::Mainnet { - // [SIP-45] Set max gas price to 1T. - cfg.max_gas_price = Some(1_000_000_000_000); - } cfg.sip_45_consensus_amplification_threshold = Some(5); } // Use this template when making changes: diff --git a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_71.snap b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_71.snap index 4ed35e18c0072..f991ccca7c4de 100644 --- a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_71.snap +++ b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_71.snap @@ -104,7 +104,7 @@ max_move_object_size: 256000 max_move_package_size: 102400 max_publish_or_upgrade_per_ptb: 5 max_tx_gas: 50000000000 -max_gas_price: 1000000000000 +max_gas_price: 100000 max_gas_computation_bucket: 5000000 gas_rounding_step: 1000 max_loop_depth: 5 diff --git a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__version_71.snap b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__version_71.snap index 5d352e02eda09..c64bf5b86add9 100644 --- a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__version_71.snap +++ b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__version_71.snap @@ -110,7 +110,7 @@ max_move_object_size: 256000 max_move_package_size: 102400 max_publish_or_upgrade_per_ptb: 5 max_tx_gas: 50000000000 -max_gas_price: 1000000000000 +max_gas_price: 100000 max_gas_computation_bucket: 5000000 gas_rounding_step: 1000 max_loop_depth: 5