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

Implement Block Production #6411

Closed
4 tasks
Tracked by #5681
tbenr opened this issue Nov 9, 2022 · 0 comments · Fixed by #6566
Closed
4 tasks
Tracked by #5681

Implement Block Production #6411

tbenr opened this issue Nov 9, 2022 · 0 comments · Fixed by #6566
Assignees
Labels
Epic Deneb Issues required to implement Deneb upgrade

Comments

@tbenr
Copy link
Contributor

tbenr commented Nov 9, 2022

https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/validator.md#get_blobs_and_kzg_commitments

Update BlockOperationSelectorFactory::createSelector to support block creation with kzg commitments retrieved from EL via engine_getBlobsBundleV1

There is also a new dataflow: engine_getBlobsBundleV1 will return blobs that needs to be stored on db once block production is completed.

We probably need a temporary cache of BlobsSidecar that need to be persisted once block is published.

This have an implication on the multiple beacon node endpoints for a VC. The beacon node will become stateful like we currently are when we do the blinded flow when mev\builder is enabled: the beacon node creating the block will cache the blobs associated to the block. Block publication needs to be done by the same beacon node, which is the only one who have the blobs and is able to construct SignedBeaconBlockAndBlobsSidecar and publish it over the network.

  • update BlockOperationSelectorFactory to call engine API getBlobsBundle to provide kzg commitments to block builder
  • cache BlobsSidecar using blobs obtained from the engine API getBlobsBundle
  • update block publication to construct SignedBeaconBlockAndBlobsSidecar with signed block coming from VC and cached BlobsSidecar.
  • Store BlobsSidecar on db
@tbenr tbenr changed the title Implement Block Production (BlockOperationSelectorFactory::createSelector) Implement Block Production Nov 9, 2022
@tbenr tbenr added the Epic Deneb Issues required to implement Deneb upgrade label Nov 9, 2022
@zilm13 zilm13 self-assigned this Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Deneb Issues required to implement Deneb upgrade
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants