Repository navigation
feat: glamsterdam devnet-8 gas repricing - #3850
Merged
Merged
Conversation
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.
Merging this PR will not alter performance
Comparing Footnotes
|
This was referenced Aug 10, 2026
rakita
marked this pull request as draft
August 10, 2026 10:05
rakita
marked this pull request as ready for review
August 13, 2026 12:54
Closed
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]>
Merged
RealiCZ
added a commit
to megaeth-labs/revm
that referenced
this pull request
Sep 16, 2026
30 tasks done
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.
Summary
Aligns Amsterdam with execution-specs
forks/amsterdamat 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)ACCOUNT_WRITECOLD_STORAGE_ACCESSCREATE_ACCESSAW + COLD_STORAGE)AW + COLD_ACCOUNT)ACCESS_LIST_ADDRESS_COSTACCESS_LIST_STORAGE_KEY_COSTSTORAGE_CLEAR_REFUND(derived)CALL_VALUE(derived)EIP-2780 value-charge fold (
primitives::eip2780)TX_VALUE_COST4,244 → 6,000;TRANSFER_LOG_COST(1,756) deleted (folded per spec).TX_BASE + CREATE_ACCESS).tx_transfer_log_costGasId 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.shdevnet fixtures bumped to[email protected].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).v5.4.0and legacy fixtures pass (no pre-Amsterdam regression).--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 ineip8038.rs.