Skip to content

op-node: Light CL: Follow Source using EL or CL#18500

Closed
pcw109550 wants to merge 9 commits intopcw109550/light-cl-follow-sourcefrom
pcw109550/light-cl-follow-source-el-cl
Closed

op-node: Light CL: Follow Source using EL or CL#18500
pcw109550 wants to merge 9 commits intopcw109550/light-cl-follow-sourcefrom
pcw109550/light-cl-follow-source-el-cl

Conversation

@pcw109550
Copy link
Member

@pcw109550 pcw109550 commented Dec 4, 2025

Description

Builds on top of #18365

This PR enables --l2.follow.source to accept either EL or CL as the source. It also ingests external CurrentL1 data into the CL. When using a CL RPC endpoint, we can fetch CurrentL1 directly.

Populating CurrentL1 is required for the batcher to operate correctly. Without derivation running, the syncStatus.CurrentL1 field remains empty, which prevents the batcher and potentially other microservices from making progress.

Tests

Existing in memory acceptance preset was tweaked to follow the EL and the CL.

Patched TestFollowL2_Safe_Finalized_CurrentL1 to track that CurrentL1 field is advancing and matching.

Commit d2a3d9a is running at the devnet.

  • Tag: d2a3d9a-light-cl-follow-source-current-l1.

Metadata

@pcw109550 pcw109550 marked this pull request as ready for review December 4, 2025 13:57
@pcw109550 pcw109550 requested review from a team as code owners December 4, 2025 13:57
@pcw109550 pcw109550 requested review from sebastianst and removed request for a team December 4, 2025 13:57
Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Basic q - is there a benefit of following an EL over a CL?

@pcw109550
Copy link
Member Author

@karlfloersch No, but I thought there are users have only access to the EL endpoint, not the CL endpoint. It would be nice to still allow follow source using the EL endpoint. So for example https://sepolia.optimism.io is the EL endpoint, very publicly known, but harder to find the CL endpoint.

@pcw109550 pcw109550 force-pushed the pcw109550/light-cl-follow-source-el-cl branch from cd98510 to 5fbdfd8 Compare December 5, 2025 19:17
Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Re-reviewed, 👍 from me lol fwiw

@pcw109550
Copy link
Member Author

Closing in favor of #18571

@pcw109550 pcw109550 closed this Dec 11, 2025
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.

2 participants