Skip to content

op-node: tolerate pruned L1 history in genesis check - #23331

Open
Tyagiquamar wants to merge 1 commit into
ethereum-optimism:developfrom
Tyagiquamar:fix/l1-genesis-history-pruned
Open

Tyagiquamar wants to merge 1 commit into
ethereum-optimism:developfrom
Tyagiquamar:fix/l1-genesis-history-pruned

Conversation

@Tyagiquamar

Copy link
Copy Markdown

Summary

  • Accept JSON-RPC history-pruned errors (code 4444) in CheckL1GenesisBlockHash, matching the existing L2 genesis check.
  • Add regression tests for pruned-history skip and non-pruned fetch failures.

Fixes #23161

Test plan

  • Docker golang:1.26-bookworm from repo root: go test -count=1 -run TestCheckL1BlockRefByNumber ./op-node/rollup/ -v (pass, 1.430s)
  • Docker golang:1.26-bookworm: gofmt -l on changed files (clean)

When reth --minimal prunes the rollup L1 genesis block, CheckL1GenesisBlockHash
now skips validation using the same history-pruned RPC error path as the L2 check.

Fixes ethereum-optimism#23161
@Tyagiquamar
Tyagiquamar requested a review from a team as a code owner October 10, 2026 17:45

This branch has not been deployed

No deployments
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.

op-node: startup fails when L1 has pruned the genesis block (reth --minimal)

1 participant