Skip to content

feat: FlashblocksPubSubManager #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 67 commits into
base: main
Choose a base branch
from
Open

Conversation

0xKitsune
Copy link
Collaborator

Previously, the flashblocks implementation featured a FlashblocksReceiverService responsible for consuming the builder WebSocket stream, and a FlashblocksService that combined payload assembly, Engine API handling, and outbound broadcasting to builders.

This PR introduces a FlashblocksPubSubManager to encapsulate subscription and publishing logic, decoupling it from Engine API responsibilities. A dedicated FlashblocksProvider now manages the in-memory FlashblockBuilder state and handles Engine API payload serving. This design creates a clear separation of concerns, improves maintainability, and makes the system easier to reason about.

Tests and metrics are still being added but opening this draft for an initial round of review.

@0xKitsune 0xKitsune marked this pull request as ready for review July 10, 2025 17:59
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.

4 participants