Skip to content

Merge op-v2.8.1-0 for op-reth v2.11.0 - #115

Merged
maoueh merged 366 commits into
release/optimism-2.xfrom
bump/op-reth-2.11.0
Dec 3, 2026
Merged

maoueh merged 366 commits into
release/optimism-2.xfrom
bump/op-reth-2.11.0

Conversation

@dfuse-bot

@dfuse-bot dfuse-bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Merges ethereum-optimism/reth op-v2.8.1-0 (reth v2.8.1 plus OP patches), the reth pin of upstream op-reth v2.11.0, into release/optimism-2.x. To be tagged op-reth-v2.11.0-fh3.1 once merged.

  • Head moved from b8d26786c144632d49fe8015d29bb950c8f3a1a8 to e8e9d5084b5ecd6c66ae36ee67919573a6352421: release/optimism-2.x was merged in to bring the staged-sync Firehose finality fix (fix(firehose): advertise real finality in staged-sync path #112, shipped in op-reth-v2.9.0-fh3.1-1) that this branch lacked. Without it, blocks replayed by staged sync advertise themselves as final and LIB runs past the real finalized head during catch-up. sf-operator feat: integrate DNS discovery service paradigmxyz/reth#832 and Bump op-reth to v2.11.0 optimism#38 pin the old head and must move to the new head (or the merge commit).
  • Conflicts in that merge: the Execution stage keeps only ChainStateBlockReader (upstream v2.8 dropped BlockHashReader); the changelog carries both entries.
  • This PR replaces Merge op-v2.7.0-2 for op-reth v2.10.0 #109. It is built on Merge op-v2.7.0-2 for op-reth v2.10.0 #109's branch, so it contains the op-v2.7.0-2 merge too. Close Merge op-v2.7.0-2 for op-reth v2.10.0 #109 without merging.
  • Merge this PR with a merge commit (not squash or rebase).
  • Every file outside the Firehose patch set was reset to op-v2.8.1-0; Firehose conflicts: bin/reth/src/main.rs (Firehose executor and blockchain init, launched with launch_with_debug_capabilities_and_backfill(EthereumBackfill)), Cargo.toml and crates/engine/tree/Cargo.toml (version 2.8.1, Firehose crates, alloy-evm patch; alloy-evm stays 0.39.0 like upstream), Cargo.lock (firehose-tracer pinned back to 5.5.1).
  • payload_validator.rs: execute_and_trace_block takes the new PayloadHandle generic and never commits prewarm results (--engine.prewarm-reuse, new in v2.8; a committed result skips the EVM, so the tracer would miss the transaction). Covered by firehose_live_tracing_prewarm_reuse.
  • types.rs: ExecutionEnv::without_txpool_prewarming, because the new crate-private pool_seeds field stops the OP Firehose engine validator from building ExecutionEnv with a struct literal.
  • Snap sync (--snap.v2) produces no Firehose blocks for the range it skips; op-reth rejects the flag.
  • Battlefield (95 passing, 0 failing) ran on the previous head; the finality merge touches only the Execution stage and Firehose finality code. Lagoon (2027-01-11) has no Battlefield devnet coverage.

banteg and others added 30 commits October 3, 2026 04:32
Co-authored-by: OpenCode <opencode-noreply@coinbase.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
…mxyz#27665)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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: joshieDo <93316087+joshieDo@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
…mxyz#27704)

Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
mattsse and others added 21 commits November 26, 2026 14:28
Adapted: the test imports StorageSlot from reth_revm::db::states (revm 43)
instead of reth_trie_common::bundle_state, which wraps evm2 types upstream.

(cherry picked from commit 3c8b4e8)
(cherry picked from commit 7243ccf)
Adapted to revm 43 / alloy-evm 0.39, which this base still runs instead of
evm2:
- EIP-8037 detection reads `cfg_env.enable_amsterdam_eip8037` and the cap
  `Cfg::tx_gas_limit_cap()` instead of `version().feature(EIP8037)` and
  `version().tx_gas_limit_cap`, the same values alloy-evm's block executor
  admits transactions with.
- Per-transaction regular and state gas come from
  `ResultGas::block_regular_gas_used()` / `block_state_gas_used()`, which
  compute what evm2's `execution_gas_spent()` / `state_gas_spent()` do.
- The block gas limit is a u64 on the base's block env, and the loop keeps
  the base's peekable iteration and deferred commit.

(cherry picked from commit 329fcfc)
(cherry picked from commit 5537ee3)
…aradigmxyz#28314)

Adapted to revm 43 / alloy-evm 0.39, which this base still runs instead of
evm2. The limits, error variants, messages and codes are upstream's.
- `CallManyBudget::admit` takes the call's `TransactionEnvMut` tx env
  directly; the base's call env is not wrapped in `Recovered`.
- `CallManyBudget::charge` takes revm's `ExecutionResult<H>`. evm2's
  "out of gas, except MemoryLimitOOG" check becomes a halt with any
  `OutOfGasError` except `MemoryLimit`, matched through `H::from(HaltReason)`
  so it also covers wrapping halt reasons such as op-revm's.
- The base's trace_callMany and debug_traceCallMany pass the tx env by value
  and an `&mut` inspector, so the budget calls wrap those `inspect` calls.
- The budget's unit tests build revm `TxEnv`s and `ExecutionResult`s instead
  of evm2 envelopes and `TxResultExt`s; the core.rs test imports TraceType,
  BlockingTaskGuard and Runtime, which upstream's test module got through
  imports this base lacks.

Not picked: 13a59de (paradigmxyz#27462) is not needed by this bound; it is in this
stack only for paradigmxyz#28253's cancellation check.

(cherry picked from commit faf670e)
(cherry picked from commit 9d5cd2b)
…xyz#27716)

Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
(cherry picked from commit b5dc94c)
(cherry picked from commit c43192e)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
(cherry picked from commit 9e10691)
(cherry picked from commit 3b86c9f)
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
(cherry picked from commit b5e7d63)
(cherry picked from commit 7f99d3b)
…8423)

Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
(cherry picked from commit c050a76)
(cherry picked from commit 3085da2)
…47)

(cherry picked from commit 3e88af4)

Co-authored-by: Ivan Wang <314130948@qq.com>
Co-authored-by: raz-glm <178501331+raz-glm@users.noreply.github.com>
(cherry picked from commit ce8cfb1)
(cherry picked from commit 95b1b67)

Co-authored-by: Karl Yu <43113774+0xKarl98@users.noreply.github.com>
(cherry picked from commit be9c60e)
(cherry picked from commit 12dfef2)

Dropped the `download/manifest.rs` hunk: on this branch that file does
not use `iter_static_files`.

Co-authored-by: Javier <javier@oplabs.co>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 96adca3)
… fully pruned (paradigmxyz#28598)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
(cherry picked from commit 208c4ee)
Pin that `OverlayStateProvider::storage_root` reads trie nodes through
the overlay when partial persistence leaves database storage-trie nodes
older than the persisted hashed storage. OP Stack consensus depends on
this: the Isthmus withdrawals root is the L2ToL1MessagePasser storage
root, computed through `storage_root` when building and validating
blocks.

Adapted to v2.8.1: the test builds its executed blocks with `SortedTrieData`,
which replaced `ComputedTrieData` upstream.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d70cc04)
(cherry picked from commit 2158d3b)
The fork pins the lint and book jobs' nightly; nightly-2026-07-14 predates
v2.8.1, and its rustdoc fails to resolve bare intra-doc links in module docs
that also carry an outer doc on the `pub mod` declaration
(`reth_trie_common::ordered_root`, `reth_trie_parallel::proof_task`). v2.8.1
was validated against an October nightly, and nightly-2026-10-22 documents
the whole workspace with `-D warnings` unchanged. It still predates the
2026-11-01 nightlies that fail to compile boa_engine (rust-lang/rust#165263),
and `cargo fmt --all --check` is clean with it.

Squash into the CI commit on the next replay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v2.8.1's unit.yml `state` job sets TMPDIR to /dev/shm/reth-tmp for the
whole `cargo nextest run` (paradigmxyz#27851), so the compiler's
temporary files land there too. act runs the job in a Docker container
with the default 64 MB /dev/shm, and building librocksdb-sys fails with
"No space left on device". Pass `--shm-size=8g` to that job's container,
about what a GitHub ubuntu-latest runner has.

Squash into the CI commit on the next replay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…igmxyz#28249)

Co-authored-by: Matthias Seitz <19890894+mattsse@users.noreply.github.com>
Co-authored-by: Brian Picciano <me@mediocregopher.com>
(cherry picked from commit 92041a4)
…s-required overlays

Pin the overlay's shape after a reorg below the persisted tip without
trie changesets: it keeps the tip's trie nodes and invalidates changed
keys with prefix sets, so it must not also carry the in-memory fork's
anchor-relative storage nodes.

paradigmxyz#28249 fixes this upstream, where the stray tip nodes
made the v2 proof calculator panic while the invalid-block witness hook
(on by default in op-reth) built a witness. The storage roots op-reth's
Isthmus withdrawals root depends on were found unaffected in testing.

Fork-only test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
op-v2.8.1-0: upstream reth v2.8.1 plus OP patches
Ported from release/reth-2.x: the traced path must execute every transaction
even when --engine.prewarm-reuse is on.
pool_seeds is crate-private, so the OP Firehose engine validator can no longer
build ExecutionEnv with a struct literal.
Brings in the staged-sync Firehose finality fix (#112, op-reth-v2.9.0-fh3.1-1)
that the bump branch lacked. The Execution stage drops BlockHashReader, which
upstream reth v2.8 no longer needs.
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merging this PR will only tag op-reth-v2.11.0-fh3.1

Note

🏷️ Tag only: nothing is built, no GitHub release is created and nothing is published.

  • Creates the tag op-reth-v2.11.0-fh3.1 on the merge commit
Release notes

Changed

  • Merged ethereum-optimism/reth op-v2.8.1-0 (reth v2.8.1 plus OP commits), the reth pin of op-reth v2.11.0. The previous pin was op-v2.7.0-2 (reth v2.7.0). alloy-evm stays at 0.39 on streamingfast/evm v0.39.0-sf and firehose-tracer on 5.5.1.
  • The Firehose engine path never commits prewarmed transaction results (--engine.prewarm-reuse, new in reth v2.8): every transaction of a traced block is executed through the tracer.
  • The reth binary launches with upstream's selectable backfill (staged pipeline, or snap sync with --snap.v2). Snap sync downloads state without executing blocks, so it produces no Firehose blocks for the range it skips.
  • Carries the staged-sync finality fix of op-reth-v2.9.0-fh3.1-1 (streamingfast/reth#112): the Execution stage advertises the node's real finalized head instead of marking every replayed block as final.

@maoueh
maoueh merged commit 6e00900 into release/optimism-2.x Dec 3, 2026
2 of 4 checks passed
@maoueh
maoueh deleted the bump/op-reth-2.11.0 branch December 3, 2026 03:48
maoueh added a commit to streamingfast/optimism that referenced this pull request Dec 3, 2026
Merge commit of streamingfast/reth#115, which carries the staged-sync Firehose finality fix (reth#112).
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.