revm_primitives/eip7825.rs
1//! EIP-7825: Transaction Gas Limit Cap
2//!
3//! Introduces a protocol-level cap on the maximum gas used by a transaction.
4
5/// Transaction gas limit cap.
6///
7/// # Rationale from EIP
8///
9/// The proposed cap of 16,777,216 gas (2^24) provides a clean power-of-two boundary that simplifies implementation while still
10/// being large enough to accommodate most complex transactions, including contract deployments and advanced DeFi interactions.
11/// This value represents approximately half of typical block sizes (30-40 million gas), ensuring multiple transactions can fit within each block.
12pub const TX_GAS_LIMIT_CAP: u64 = 16_777_216;