Skip to content

Update to reth v2.7.0 - #65

Merged
maoueh merged 397 commits into
release/reth-2.xfrom
feature/upgrade-to-reth-2-7-0
Oct 1, 2026
Merged

maoueh merged 397 commits into
release/reth-2.xfrom
feature/upgrade-to-reth-2-7-0

Conversation

@maoueh

@maoueh maoueh commented Sep 29, 2026

Copy link
Copy Markdown

Merges upstream reth v2.6.0 then v2.7.0 into the Firehose fork.

  • alloy-evm 0.39 is required. It comes from the new streamingfast/evm tag v0.39.0-sf, which is upstream v0.39.0 plus the unchanged SF patch that routes system calls through the inspector.
  • Fixes the live Firehose engine path, which built no EIP-7928 block access list. Upstream v2.7.0 rejects Amsterdam blocks that produce no BAL, so a node with tracing on would have rejected every Amsterdam block. execute_and_trace_block now builds the BAL the same way execute_block does. A new Amsterdam live-tracing test covers this.
  • Traces Amsterdam transactions whose EIP-2780 runtime gas phase runs out of gas. revm includes them as out-of-gas halts without opening a frame, so they used to come out with no call, no receipt, zero gas and an unknown status. The executor now synthesizes the failed root call (gas buy, nonce bump, receipt matching RPC). This was pre-existing and is covered by inspector and prestate tests.
  • Adapts to StateProviderDatabase now requiring an EvmStateProvider. The live path uses EvmStateProviderBox.
  • Regenerated the amsterdam_builder_execution_requests golden. revm 43 uses the glamsterdam devnet-8 EIP-8038 costs, with cold storage access at 2,100 gas instead of 3,000, so the EIP-7002/7251 system calls now report 3,600 less gas.
  • Known Amsterdam parity gap, pre-existing and not addressed here: revm short-circuits a CREATE opcode that fails on balance, nonce or (new in revm 43) call depth, without opening a frame. Firehose therefore emits no call where geth may emit a failed one.

mattsse and others added 30 commits September 3, 2026 17:04
…z#26941)

Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
Co-authored-by: Derek <256792747+decofe@users.noreply.github.com>
…yz#26990)

Co-authored-by: Brian Picciano <933154+mediocregopher@users.noreply.github.com>
Co-authored-by: Brian Picciano <me@mediocregopher.com>
Co-authored-by: Arsenii Kulikov <62447812+klkvr@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
…gmxyz#26900)

Co-authored-by: ControlCplusControlV <44706811+ControlCplusControlV@users.noreply.github.com>
…igmxyz#27015)

Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
Co-authored-by: Emma Jamieson-Hoare <emmajam@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
…xyz#27009)

Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
mattsse and others added 26 commits September 25, 2026 14:01
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
)

Signed-off-by: banteg <4562643+banteg@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
…xyz#27217)

Signed-off-by: banteg <4562643+banteg@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Emma Jamieson-Hoare <21029500+emmajam@users.noreply.github.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Build the EIP-7928 block access list on the Firehose live path (execute_and_trace_block), mirroring
upstream execute_block: v2.7.0 consensus rejects Amsterdam blocks whose execution produced no BAL,
and the stored/propagated BAL now comes from execution. Adapt Firehose to StateProviderDatabase
requiring an EvmStateProvider.
Under Amsterdam, EIP-2780 charges the state gas of a created or newly funded account before the
first frame opens. When it runs out, revm includes the transaction as an out-of-gas halt without
opening a frame, so no inspector hook fires and the tracer emitted a transaction with no call, no
receipt, zero gas used and an unknown status. The executor now traces the failed root call (gas
buy, nonce bump, receipt), resetting per-transaction state at transaction start since system
calls open depth-0 frames too.

Also propagate asm-keccak to alloy-evm in bin/reth.
@maoueh
maoueh merged commit 7a59d19 into release/reth-2.x Oct 1, 2026
4 of 5 checks passed

@sduchesneau sduchesneau left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, as long as it passes test-mode

@maoueh
maoueh deleted the feature/upgrade-to-reth-2-7-0 branch October 1, 2026 17:41
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.