Skip to content

Commit

Permalink
Remove max gas price change
Browse files Browse the repository at this point in the history
  • Loading branch information
shio-coder committed Dec 31, 2024
1 parent 06ae314 commit fa6065c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa6065c

Please sign in to comment.