Skip to content

eip-7825: transaction gas limit cap - #2834

Merged
anvacaru merged 5 commits into
masterfrom
eip-7825
Aug 27, 2026
Merged

eip-7825: transaction gas limit cap#2834
anvacaru merged 5 commits into
masterfrom
eip-7825

Conversation

@anvacaru

Copy link
Copy Markdown
Contributor

Adding a check in #isValidTransaction rules to check that the transaction gas limit is below the cap in schedules where EIP-7825 is active.

@palinatolmach
palinatolmach self-requested a review August 27, 2026 11:25
@anvacaru
anvacaru merged commit 82abf6c into master Aug 27, 2026
15 checks passed
@anvacaru
anvacaru deleted the eip-7825 branch August 27, 2026 11:34
Comment thread tests/execution-spec-tests/failing.llvm
andBool TX_MAX_PRIORITY_FEE <=Int TX_MAX_FEE
andBool BAL >=Int TX_GAS_LIMIT *Int TX_MAX_FEE +Int VALUE
andBool TX_GAS_LIMIT <=Int BLOCK_GAS_LIMIT
andBool (notBool Ghastxgaslimit << SCHED >> orBool TX_GAS_LIMIT <=Int Gmaxtxgaslimit < SCHED >)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be extracted into a helper looking something like this, but I think as is it's fine too:

    syntax Bool ::= #hasValidTxGasLimit ( Int , Schedule ) [symbol(#hasValidTxGasLimit), function]
 // ------------------------------------------------------------------------------------------------
    rule #hasValidTxGasLimit(TX_GAS_LIMIT, SCHED) => notBool Ghastxgaslimit << SCHED >> orBool TX_GAS_LIMIT <=Int Gmaxtxgaslimit < SCHED >

@palinatolmach palinatolmach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing: the description of #isValidTransaction(TXID, SENDER) in state-utils.md could be updated to include the new transaction gas limit checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants