bgpo: convert BTO from subscription to polling#19095
Merged
sebastianst merged 1 commit intodevelopfrom Feb 5, 2026
Merged
Conversation
The Blob Tip Oracle (BTO) previously used ethclient.SubscribeNewHead() for header notifications, which only works over WebSocket connections. This change converts it to polling for new headers instead, allowing it to work with HTTP connections. The polling uses the existing PollRate configuration (2.5s default) to check for new headers at regular intervals. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
nonsense
approved these changes
Feb 5, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 5, 2026
The Blob Tip Oracle (BTO) previously used ethclient.SubscribeNewHead() for header notifications, which only works over WebSocket connections. This change converts it to polling for new headers instead, allowing it to work with HTTP connections. The polling uses the existing PollRate configuration (2.5s default) to check for new headers at regular intervals. Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Contributor
|
For the record, you can use optimism/op-service/client/polling.go Line 56 in 101448e |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Convert the Blob Tip Oracle (BTO) from using ethclient.SubscribeNewHead() (WebSocket-only) to polling for new headers. This enables BTO to work with HTTP connections and removes the WebSocket requirement.
Changes remove the SubscribeNewHead method from BTOBackend, convert the subscription-based processing loop to a polling loop using the existing PollRate configuration (2.5s default), and update tests accordingly.
Test Plan
go test ./op-service/bgpo/...)go test ./op-service/txmgr/...)🤖 Generated with Claude Code