Skip to content

feat: glamsterdam devnet-8 gas repricing - #3850

Merged
rakita merged 1 commit into
mainfrom
glamsterdam-devnet-8
Aug 13, 2026
Merged

rakita merged 1 commit into
mainfrom
glamsterdam-devnet-8

Conversation

@rakita

@rakita rakita commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

Aligns Amsterdam with execution-specs forks/amsterdam at glamsterdam devnet-8 (spec overview, fixtures [email protected]).

Most devnet-8 mechanics (EIP-8037 source-based/LIFO spill refunds, EIP-7928 recipient exclusion on runtime-phase halt, EIP-7702 paid-writes gating) were already implemented on main; this PR carries the remaining constant repricing and the EIP-2780 value-charge fold.

EIP-8038 repricing (primitives::eip8038)

Constant devnet-7 devnet-8
ACCOUNT_WRITE 8,000 9,000
COLD_STORAGE_ACCESS 3,000 2,100
CREATE_ACCESS 11,000 (AW + COLD_STORAGE) 12,000 (AW + COLD_ACCOUNT)
ACCESS_LIST_ADDRESS_COST 3,000 (full cold) 2,900 (cold − warm)
ACCESS_LIST_STORAGE_KEY_COST 3,000 (full cold) 2,000 (cold − warm)
STORAGE_CLEAR_REFUND (derived) 12,480 11,616
CALL_VALUE (derived) 10,300 11,300

EIP-2780 value-charge fold (primitives::eip2780)

  • TX_VALUE_COST 4,244 → 6,000; TRANSFER_LOG_COST (1,756) deleted (folded per spec).
  • Calls with value are unchanged at 21,000 intrinsic total; create transactions no longer pay any value-based charge (24,000 flat = TX_BASE + CREATE_ACCESS).
  • The tx_transfer_log_cost GasId is removed (tx_account_write_cost → 48, tx_create_access_cost → 49). The EIP-7708 transfer-log emission itself is unchanged.

Misc

  • scripts/run-tests.sh devnet fixtures bumped to [email protected].
  • ee-tests golden totals and eip8037 insta snapshots re-baselined (all deltas are exactly the repriced constants: +1,000 per create access / account write, −900 per cold storage access).

Validation

  • [email protected]: all state tests and blockchain tests pass (17,758 Amsterdam-fork tests, ~81k total, 0 failures; skips are the usual system-contract/EIP-7610 categories).
  • Main develop v5.4.0 and legacy fixtures pass (no pre-Amsterdam regression).
  • Workspace tests pass in default, --all-features, and --no-default-features; clippy, fmt, typos clean.

Note: v8.1.0 fixtures were cut pre-freeze; a follow-up release carrying the frozen repricing (ethereum/EIPs PR-12083) is expected. Since CREATE_ACCESS, CALL_VALUE, and the refunds are derived, a renumber should only touch the base constants in eip8038.rs.

Aligns Amsterdam with execution-specs forks/amsterdam (devnet-8,
[email protected]):

- EIP-8038: ACCOUNT_WRITE 8000 -> 9000, COLD_STORAGE_ACCESS 3000 -> 2100,
  CREATE_ACCESS = ACCOUNT_WRITE + COLD_ACCOUNT_ACCESS (12000), access-list
  items now charge cold minus warm (2900/address, 2000/storage key).
  Derived: STORAGE_CLEAR_REFUND 11616, CALL_VALUE 11300.
- EIP-2780: TX_VALUE_COST folded to 6000, TRANSFER_LOG_COST deleted;
  create transactions pay no value-based charge (24000 flat). The
  tx_transfer_log_cost GasId is removed.
- run-tests.sh devnet fixtures bumped to v8.1.0.
- ee-tests golden totals and eip8037 snapshots re-baselined to the new
  prices.

All v8.1.0 devnet state and blockchain tests pass, along with main
develop v5.4.0 and legacy fixtures.
@codspeed

codspeed Bot commented Aug 10, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 189 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing glamsterdam-devnet-8 (0cc8b8a) with main (61e0a9f)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@rakita
rakita marked this pull request as draft August 10, 2026 10:05
@rakita
rakita marked this pull request as ready for review August 13, 2026 12:54
@rakita
rakita merged commit 45f05bd into main Aug 13, 2026
34 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 12, 2026
DaniPopes added a commit to alloy-rs/evm2 that referenced this pull request Aug 13, 2026
## Summary

Backport of
[bluealloy/revm#3850](bluealloy/revm#3850),
aligning Amsterdam with execution-specs `forks/amsterdam` at glamsterdam
devnet-8 (fixtures `[email protected]`).

### EIP-8038 repricing (`interpreter::gas`)

| Constant | devnet-7 | devnet-8 |
|---|---:|---:|
| `ACCOUNT_WRITE` | 8,000 | 9,000 |
| `COLD_STORAGE_ACCESS` | 3,000 | 2,100 |
| `CREATE_ACCESS` | 11,000 (`AW + COLD_STORAGE`) | 12,000 (`AW +
COLD_ACCOUNT`) |
| `ACCESS_LIST_ADDRESS_COST` | 3,000 (full cold) | 2,900 (cold − warm) |
| `ACCESS_LIST_STORAGE_KEY_COST` | 3,000 (full cold) | 2,000 (cold −
warm) |
| `STORAGE_CLEAR_REFUND` (derived) | 12,480 | 11,616 |
| `CALL_VALUE` (derived) | 10,300 | 11,300 |

### EIP-2780 value-charge fold

- `TX_VALUE_COST` 4,244 → 6,000; `TRANSFER_LOG_COST` (1,756) deleted
(folded per spec).
- Calls with value are unchanged at 21,000 intrinsic total; **create
transactions no longer pay any value-based charge** (24,000 flat =
`TX_BASE + CREATE_ACCESS`).
- The `TxTransferLogCost` GasId is removed. The EIP-7708 transfer-log
emission itself is unchanged.

### Misc

- Devnet fixtures bumped to `[email protected]` in
`setup_test_fixtures.py`, `ci.yml`, and AGENTS.md.

## Validation

- `[email protected]`: all 33,079 interpreter EEST tests
pass (480 usual skips).
- Compiled suites over the Amsterdam devnet roots: `statetests::aot`,
`blockchain_tests::aot`, and the JIT smoke sets all pass.
- Workspace tests, clippy, fmt, docs clean.

Note: v8.1.0 fixtures were cut pre-freeze; a follow-up release carrying
the frozen repricing (ethereum/EIPs PR-12083) is expected. Since
`CREATE_ACCESS`, `CALL_VALUE`, and the refunds are derived, a renumber
should only touch the base constants.

Co-authored-by: DaniPopes <[email protected]>
@github-actions github-actions Bot mentioned this pull request Aug 18, 2026
RealiCZ added a commit to megaeth-labs/revm that referenced this pull request Sep 16, 2026
@RealiCZ RealiCZ mentioned this pull request Sep 18, 2026
30 tasks done
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.

1 participant