feat: Monad-style 30M per-tx gas cap under Osaka (#392)#401
Open
nekomoto911 wants to merge 1 commit into
Open
Conversation
Gravity replaces EIP-7825's 2^24 per-tx gas cap with a flat Monad-style 30M cap (TFM_MAX_GAS_LIMIT) once Osaka activates. The 30M matches the system-transaction gas_limit exactly, so the boundary admits them and the separate system-tx gas gating (Galxe#392 P2) is no longer needed. Enforced in lockstep at three Osaka-gated sites off a single constant GRAVITY_TX_GAS_LIMIT_CAP: the executor cfg (tx_gas_limit_cap), the consensus block check, and the pipe tx_filter guard, so a self-produced block admitted by one path is never rejected on another. Dormant today (no osakaTime).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #392.
Under Osaka, Gravity uses a flat Monad-style 30M per-tx gas cap (
TFM_MAX_GAS_LIMIT)instead of EIP-7825's
2^24. This deviates from the issue's original 2^24 design onpurpose: 30M equals the system-transaction
gas_limit, so the boundary admits them and#392's separate system-tx gas gating (P2) is no longer needed.
Enforced in lockstep off one constant
GRAVITY_TX_GAS_LIMIT_CAPat three Osaka-gatedsites — the executor cfg (
tx_gas_limit_cap), the consensus block check, and the pipetx_filterguard — so a self-produced block admitted by one path is never rejected onanother. Dormant until
osakaTime.Not included (separate follow-ups): the cross-Osaka e2e acceptance, and #392's incidental
revm-bump debt (
nonce == u64::MAXguard, tx_filter header rewrite).