Skip to content

Bump op-reth to v2.10.0 - #35

Merged
maoueh merged 154 commits into
release/op-reth-2.xfrom
bump/op-reth-2.10.0
Dec 3, 2026
Merged

maoueh merged 154 commits into
release/op-reth-2.xfrom
bump/op-reth-2.10.0

Conversation

@dfuse-bot

@dfuse-bot dfuse-bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merges upstream op-reth/v2.10.0 (152 commits on top of op-reth/v2.9.0) into release/op-reth-2.x. To be tagged op-reth-v2.10.0-fh3.1 once merged (the tag the release tracker proposed, which follows the naming rule). The Firehose block model is unchanged, so the version stays fh3.1.

Before merging

  • Merge op-v2.7.0-2 for op-reth v2.10.0 reth#109 is merged with a merge commit and its head is still 11c7c9cb1906bea6b780f57381a4dc94a13d3d88, the commit rust/Cargo.toml pins (it will be tagged op-reth-v2.10.0-fh3.1 in streamingfast/reth).

Merge order: streamingfast/reth#109 first, then this PR, with a merge commit.

What changed

  • Upstream: schedules Lagoon on OP Mainnet and Unichain for 2027-01-11 16:00:01 UTC (1799683201, Sepolia networks 2026-12-10), pairs OP and Unichain in the interop dependency set, drops retired chains from the built-in registry, caps historical eth_getProof at 1,024 storage keys, fixes historical proofs after an unwind, and makes subblocks reconnect when the feed stalls. reth moves to ethereum-optimism/reth op-v2.7.0-2. Upstream also removes the op-reth node generics (op-reth!: drop the generics that only ever take one type ethereum-optimism/optimism#24270): OpEvmConfig, OpAddOns and the payload builder are now concrete types.
  • Reth pin: streamingfast/reth commit 11c7c9cb (Merge op-v2.7.0-2 for op-reth v2.10.0 reth#109, future tag op-reth-v2.10.0-fh3.1), which merges op-v2.7.0-2 into release/optimism-2.x.
  • alloy-evm: stays at 0.39, so the streamingfast/evm v0.39.0-sf patch is unchanged. firehose-tracer stays at 5.5.1.
  • Conflicts:
    • rust/Cargo.toml: kept our reth block (pins moved to the new commit), took upstream's other changes.
    • rust/Cargo.lock: took upstream's and re-resolved; firehose-tracer re-pinned to 5.5.1.
    • rust/op-reth/bin/src/main.rs: kept the Firehose tracer init before upstream's new Cli::<RollupArgs> call.
    • rust/op-reth/crates/node/src/node.rs: took upstream's de-generified node, then put back our two swaps: OpFirehoseEngineValidatorBuilder replaces BasicEngineValidatorBuilder in OpRpcAddOns and its bounds, and OpExecutorBuilder builds OpFirehoseEvmConfig<OpEvmConfig>. Upstream still bounds the payload builder, RPC and engine on ConfigurePostExecEvm, which the wrapper implements, so no other file needed a change.
    • rust/op-reth/crates/evm/src/post_exec_ext.rs: upstream imports plus RecoveredBlock for our firehose_trace_built_block hook.
    • rust/op-reth/crates/payload/src/builder.rs and Cargo.toml: kept the re-trace of derivation (no_tx_pool) blocks; no_tx_pool is now a field.
    • rust/op-reth/crates/node/tests/it/builder.rs: OpEvmConfig lost its _pd field.

Firehose review

  • Serial tracing order (pattern 1): no new parallel execution on the traced path. The new --proofs-history.prefetch-threads only reads proofs-store pages ahead of persistence. The proofs ExEx still re-executes with execute_one, which is not traced, including in the new unwind code.
  • Block printed after validation (pattern 2): OpEngineValidator::validate_block_post_execution_with_hashed_state keeps the same Isthmus withdrawals root check, now on concrete types, and our engine validator still prints the block only after it passes.
  • Activations (pattern 3, ACTIVATIONS.md): op-reth v2.10.0 defines no new OpHardfork. The registry update schedules Lagoon on OP Mainnet and Unichain; all other fork times are unchanged. op-reth no longer has hard-coded OP Mainnet times, so both chains now take them from the registry. The post-exec execution and refund code is only moved in this range, so the Lagoon items recorded in v2.9.0 still apply (see Open questions).
  • Fee vault formulas: extras.rs calls calculate_tx_l1_cost and operator_fee_charge; op-revm/src/l1block.rs is unchanged and handler.rs changes only the type of the deposit mint.
  • Upstream fields (pattern 4): the deposit mint moves from u128 to U256 (op-alloy,op-revm,kona!: hold the deposit mint as a uint256 ethereum-optimism/optimism#24257). The Firehose mapper does not carry mint; the mint credit comes from the balance change. Deposit receipts now report blobGasUsed: 0 on RPC (op-revm,op-reth: report a zero blobGasUsed on deposit receipts ethereum-optimism/optimism#24229). Block DA accounting already skipped deposits, and our receipt blob_gas_used is the EIP-4844 blob gas, which is 0 for deposits, so the Firehose block does not change.
  • Hashes (pattern 5): no new hashless transaction.

Dependencies

  • Pins: streamingfast/reth release/optimism-2.x (new PR Merge op-v2.7.0-2 for op-reth v2.10.0 reth#109) and streamingfast/evm release/0.x (unchanged, no PR needed). The dependency table in the release tracker is correct.
  • Pinned by: no StreamingFast repository pins this fork apart from the deployment repository (code search for op-reth-v2.9.0-fh3.1).

CHANGELOG

## op-reth-v2.10.0-fh3.1

Bumps the SF op-reth fork to upstream `op-reth/v2.10.0` (152 upstream commits on top of
`op-reth/v2.9.0`).

### Changed

* Merged upstream `op-reth/v2.10.0`, which schedules Lagoon on OP Mainnet and Unichain for
  2027-01-11 16:00:01 UTC (`1799683201`) and on their Sepolia networks for 2026-12-10 16:00:01 UTC,
  caps historical `eth_getProof` requests at 1,024 storage keys, fixes historical proofs after an
  unwind and drops several retired chains from the built-in registry. Upstream also removes the
  op-reth node generics; the Firehose EVM config and engine validator are wired into the
  concrete node types the same way as before.
* Reth now comes from `streamingfast/reth` `op-reth-v2.10.0-fh3.1`, which merges `op-v2.7.0-2` into
  `release/optimism-2.x`. `alloy-evm` stays on `streamingfast/evm` `v0.39.0-sf` and
  `firehose-tracer` on 5.5.1.
* `ACTIVATIONS.md` records the Lagoon activation time. The Lagoon items it lists (post-exec
  transaction without a call or receipt, sender `GasRefund` without the operator fee part) are
  unchanged by this release and reach the Firehose output from that date.

Open questions

  • Lagoon is now scheduled (2027-01-11 16:00:01 UTC on OP Mainnet and Unichain). The Firehose output for Lagoon blocks still has the three open items listed in Bump op-reth to v2.9.0 #32, unchanged by this release, and no Battlefield devnet activates Lagoon:

    1. The block executor short-circuits the 0x7D post-exec transaction without running the EVM, so its trace has no call, and the tracer drops its receipt and leaves its status unknown.
    2. OpPostTxExtras runs for that transaction too, reading the previous transaction's environment. The fee vault change it computes is discarded, but it uses up a block ordinal.
    3. With post-exec (SDM settlement) refunds, the sender's GasRefund leaves out the operator fee part of the refund when operator fees are nonzero.

    I left these unchanged. Someone should compare them with op-geth's tracer and decide the model, and a fix release has to reach every host before the activation date.

Test Execution Summary

Build Status

  • streamingfast/reth cargo check --workspace --all-targets: PASSED
  • streamingfast/optimism rust/: cargo check --workspace --all-targets: PASSED
  • streamingfast/optimism rust/: cargo build --release -p op-reth --bin op-reth: PASSED

Unit Tests

Repository Package Status Notes
streamingfast/reth reth-firehose PASSED 34 tests
streamingfast/reth reth-firehose-tests (prestate golden files) PASSED 2 tests, golden files unchanged
streamingfast/reth reth-engine-tree --test firehose_live_tracing PASSED 1 test
streamingfast/optimism reth-optimism-firehose PASSED no unit tests in the crate
streamingfast/optimism op-alloy-consensus --features firehose PASSED 100 tests
streamingfast/optimism reth-optimism-evm PASSED 58 tests
streamingfast/optimism reth-optimism-payload-builder PASSED 45 tests
streamingfast/optimism reth-optimism-node --test it builder PASSED 2 tests
streamingfast/optimism op-reth --bin op-reth PASSED 5 tests
streamingfast/optimism reth-optimism-trie (lib, tests/lib.rs, tests/live.rs) PASSED 290 + 86 + 9 tests, with --test-threads=4 (MDBX test databases run out of memory with 60 threads at once, as on the previous bump)

Notes:

  • Upstream's Cargo.lock has no firehose-tracer, so the merge first resolved 5.7.0, which does not build with the reth Firehose mapper (TxEvent gained a field). It is pinned back to 5.5.1 with cargo update -p firehose-tracer --precise 5.5.1.
  • reth v2.7.0 locks llvm-sys 221 (LLVM 22). The build machine has LLVM 23 only; it builds with LLVM_SYS_221_PREFIX=/usr/lib/llvm-23 and LLVM 23's llvm-config first on PATH.

Integration Tests

  • Status: NOT RUN (no integration suite beyond the tests above for this chain)

Battlefield Tests

  • Status: PASSED
  • Pass/Fail: 95 passing / 0 failing (43 pending: the Amsterdam, ArbOS, Base and other suites that do not apply to an OP Stack chain)
  • Compare blocks (Firehose blocks against the node's JSON-RPC): PASSED
  • Karst suite (activation block upgrade deposits, CLZ, MODEXP, P256VERIFY, BN254 pairing cap, transaction gas cap): PASSED
  • No panic or Firehose error in the op-reth log. With the devnet's custom genesis, op-reth logs one Unparsable size ... PosixHeader error at startup: the new upstream superchain_block_time lookup reads to the end of the embedded registry archive for a chain ID it does not know. The built-in optimism and unichain chainspecs load and carry lagoonTime = 1799683201.
  • Failures: none.
  • Coverage: the devnet runs Jovian from genesis and Karst from L2 block 10, so every fork live on OP Mainnet and Unichain today is covered. Operator fee parameters are zero, so the OperatorFeeVault credit is not exercised. Lagoon, now scheduled for 2027-01-11, is not activated by any Battlefield devnet (builder-playground has no Lagoon support), so the post-exec transaction and settlement refunds have no Battlefield coverage.

Commands (battlefield-ethereum e018f5b, builder-playground v0.3.3-sf2 built from source, op-node v1.19.11, fireeth v2.24.1, op-reth from cargo build --release -p op-reth --bin op-reth on this branch):

./scripts/optimism/run_optimism_devnet.sh
./scripts/run_firehose_op_reth_devnet.sh   # op-reth from this branch first on PATH
pnpm test:fh3.0:op-reth-devnet

lumoswiz and others added 30 commits November 12, 2026 12:17
…eum-optimism#24090)

Co-authored-by: Anton Evangelatov <anton.evangelatov@oplabs.co>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… networks (ethereum-optimism#24089)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ned accessors (ethereum-optimism#23863)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…URITY] (ethereum-optimism#23965)

Co-authored-by: oplabs-renovate[bot] <310106951+oplabs-renovate[bot]@users.noreply.github.com>
ethereum-optimism#23895)

Co-authored-by: Josh Klopfenstein <joshklop@oplabs.co>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… the interop harness with op-deployer; delete interopgen (ethereum-optimism#23668)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…build_pending_env (ethereum-optimism#24077)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ethereum-optimism#23669)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ge (ethereum-optimism#23817)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
…4017)

Co-authored-by: wwared <541936+wwared@users.noreply.github.com>
falcorocks and others added 24 commits November 19, 2026 15:34
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…later forks in WithForkAtOffset (ethereum-optimism#24154)

Co-authored-by: wwared <541936+wwared@users.noreply.github.com>
…sm#24176)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…4307)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… in the kona acceptance job (ethereum-optimism#24245)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…sm#24308)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…tures (ethereum-optimism#24310)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…luded (ethereum-optimism#24287)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… hook is set (ethereum-optimism#24294)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… hook is set (ethereum-optimism#24294)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Rodrigo Araújo <rod.dearaujo@gmail.com>
Records the Lagoon activation time in ACTIVATIONS.md.
@dfuse-bot

Copy link
Copy Markdown
Author

Replaced by #38 (op-reth v2.11.0), which is built on this branch and contains the v2.10.0 merge. Close this PR without merging, or merge it first with a merge commit, then #38.

@maoueh
maoueh merged commit caaa33b into release/op-reth-2.x Dec 3, 2026
2 checks passed
@maoueh
maoueh deleted the bump/op-reth-2.10.0 branch December 3, 2026 04:45
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.