Skip to content

chore(test-client-clis): update GAS_USED_OVERFLOW exception mapper#2632

Merged
marioevz merged 1 commit into
ethereum:forks/amsterdamfrom
edg-l:ethrex/fix-mapper-gas
Apr 7, 2026
Merged

chore(test-client-clis): update GAS_USED_OVERFLOW exception mapper#2632
marioevz merged 1 commit into
ethereum:forks/amsterdamfrom
edg-l:ethrex/fix-mapper-gas

Conversation

@edg-l

@edg-l edg-l commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

🗒️ Description

ethrex no longer includes "Block gas used overflow" in its per-tx gas check error messages. Map GAS_USED_OVERFLOW to the same "Gas allowance exceeded" pattern used for GAS_ALLOWANCE_EXCEEDED, since ethrex uses a single per-tx check for both cases.

🔗 Related Issues or PRs

N/A.

✅ Checklist

  • All: Ran fast static checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    just static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

ethrex no longer includes "Block gas used overflow" in its per-tx
gas check error messages. Map GAS_USED_OVERFLOW to the same
"Gas allowance exceeded" pattern used for GAS_ALLOWANCE_EXCEEDED,
since ethrex uses a single per-tx check for both cases.
@spencer-tb spencer-tb added C-chore Category: chore A-test-client-clis Area: execution_testing.client_clis labels Apr 7, 2026
@spencer-tb spencer-tb changed the title fix(tests): update GAS_USED_OVERFLOW exception mapper chore(test-client-clis): update GAS_USED_OVERFLOW exception mapper Apr 7, 2026

@spencer-tb spencer-tb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Will wait for CI.

@codecov

codecov Bot commented Apr 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.24%. Comparing base (4bf8bbe) to head (445d8c4).
⚠️ Report is 1 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #2632   +/-   ##
================================================
  Coverage            86.24%   86.24%           
================================================
  Files                  599      599           
  Lines                36984    36984           
  Branches              3795     3795           
================================================
  Hits                 31895    31895           
  Misses                4525     4525           
  Partials               564      564           
Flag Coverage Δ
unittests 86.24% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marioevz marioevz merged commit b6ccb42 into ethereum:forks/amsterdam Apr 7, 2026
21 checks passed
github-merge-queue Bot pushed a commit to lambdaclass/ethrex that referenced this pull request Apr 10, 2026
…ing (#6447)

Bump BAL fixtures from v5.5.1 to v5.6.1 across Makefile, CI workflows,
docs, and fixture URL files.

Fix two EIP-8037 correctness issues in `system.rs`: move the `is_static`
check to CREATE/CREATE2 handlers (Amsterdam+ only) before stack pops and
gas charging, matching ethereum/execution-specs#2608; move
`increase_state_gas(STATE_GAS_NEW_ACCOUNT)` into `generic_create()`
after `MAX_INIT_CODE_SIZE` validation so oversized CREATE doesn't burn
state gas for an account never created.

Fix per-tx gas check in `levm/mod.rs` to use `block_regular_gas_used`
instead of `max(regular, state)` per ethereum/execution-specs#2583, and
apply `min(TX_MAX_GAS_LIMIT, tx.gas)` cap per EIP-7825. Applied across
`execute_block`, `execute_block_pipeline`, and `execute_block_parallel`.

Update `payload.rs` to track `remaining_gas` using regular gas capacity
only for Amsterdam. All 1103 BAL consume-engine tests pass.

Along with ethereum/execution-specs#2632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-test-client-clis Area: execution_testing.client_clis C-chore Category: chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants