Skip to content

P2P Flashblocks Propagation #373

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

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft

Conversation

0xForerunner
Copy link
Collaborator

Our team was discussing today what the optimal way to distribute flashblocks to consuming nodes is. I feel the websocket proxy method feels a bit forced like pushing web2 apis on something that should really be web3 based. As well, a websocket proxy could be vulnerable do a DDOS attack where some bad actor consumes all available connections on the proxy and is able to take advantage of MEV opportunities without competition.

I've got a very WIP implementation of what distributing flashblocks over the p2p layer could look like instead! Basic flow:

  • rollup-boost should be in charge of authorizing who has permission to build blocks
  • rollup-boost signs a message authorizing a builder to build a block with a specific payload_id
  • signed Authorization is included in modified ForkChoiceUpdated with attrs call to builder
  • builder receives Authorization, begins building blocks and publishes them over the flashblocks peering layer as a new libp2p capability utilizing the existing peer set
  • flashblocks published over the peering layer contain the builders signature along with it's authorization for that payload_id
  • nodes receive the flashblocks and validate their authorization

I'm posting a draft PR here just in case you're curious to take a look. It's absolutely not ready so please don't leave any comments on implementation. I'm really please with how easy it is to add p2p capabilities on top of reth!

Copy link

vercel bot commented Jul 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rollup-boost ⬜️ Ignored (Inspect) Visit Preview Jul 19, 2025 0:26am

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.

1 participant