Skip to content
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

Define engine_getBlobsV1 #559

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

Conversation

michaelsproul
Copy link
Contributor

Engine API specification for a new optional getBlobsV1 method.

The purpose of this method is to allow consensus clients to fetch blobs from the EL blob pool, so that:

  • It reduces the delay for a block to become available and attestable, if the blobs aren't received via gossip in a timely manner e.g. due to limited proposer bandwidth, or high latency at the receiving node.
  • Secondly it enables "decentralized blob building", which reduces the likelihood of a block getting orhpaned if the block proposer isn't able to publish the blobs quick enough due to bandwidth constraints (e.g. home stakers with limited bandwidth or stakers in remote locations). High capacity nodes can fetch blobs from their EL blob pools, build the blob sidecars and publish it to the network on behalf of the proposer. This will help self builders today (which statistically include a higher number of blobs in their blocks), and will become an important component to keep local block building viable for home stakers when blob count increases in the near future.

Co-authored with @jimmygchen

Copy link
Collaborator

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

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

A few nits, otherwise, looks good to me!

src/engine/cancun.md Outdated Show resolved Hide resolved
src/engine/cancun.md Outdated Show resolved Hide resolved
src/engine/cancun.md Outdated Show resolved Hide resolved
src/engine/cancun.md Outdated Show resolved Hide resolved
src/engine/openrpc/methods/blob.yaml Show resolved Hide resolved
michaelsproul and others added 2 commits July 1, 2024 23:17
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
Copy link
Collaborator

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

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

LGTM!

@LukaszRozmej
Copy link

LukaszRozmej commented Aug 8, 2024

Would it be possible to query by tx hash instead of blob version hashes? EL generally store by tx hash. We can add another mapping but it will complicate things a bit. Or pairs of txhash+blobversionhashes.

EDIT: decided on ACCD that CL doesn't have the tx hashes.

@lightclient
Copy link
Member

lightclient commented Aug 8, 2024

Is there a reason this should be in the engine API vs the regular eth api? I lean towards the latter.

@smartprogrammer93
Copy link
Contributor

@lightclient i disagree. i dont see why this should move to eth API. it will only be used by CL clients. I dont see any other usage. Additionally, it is way better to keep all methods used by CL in the engine API. i hate the fact that they have to use eth API for other things (like eth_getLogs etc)

Copy link

Choose a reason for hiding this comment

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

I think the engine_getBlobsV1 method warrants a new entry in the table of contents.

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.

8 participants