-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Execution API: Support blobs_bundle_v2
for PeerDAS
#15167
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
Conversation
func (vs *Server) constructGenericBeaconBlock(sBlk interfaces.SignedBeaconBlock, blobsBundle *enginev1.BlobsBundle, winningBid primitives.Wei) (*ethpb.GenericBeaconBlock, error) { | ||
func (vs *Server) constructGenericBeaconBlock( | ||
sBlk interfaces.SignedBeaconBlock, | ||
blobsBundle enginev1.BlobsBundler, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blobsBundle
==> blobsBundler
?
(To ensure consistency between variable name and type.)
@@ -12,7 +12,7 @@ import ( | |||
// GetPayloadResponseV(1|2|3|4) value. | |||
type GetPayloadResponse struct { | |||
ExecutionData interfaces.ExecutionData | |||
BlobsBundle *pb.BlobsBundle | |||
BlobsBundle pb.BlobsBundler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlobsBundle
==> BlobsBundler
?
(To ensure struct field consistency with type.)
proto/engine/v1/electra.proto
Outdated
@@ -81,3 +81,11 @@ message ExecutionBundleElectra { | |||
bool should_override_builder = 4; | |||
repeated bytes execution_requests = 5; | |||
} | |||
|
|||
message ExecutionBundleFulu { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to create a new fulu.proto
file to avoid having Fulu structs defined in the electra.proto
file?
This PR adds support for
blobs_bundle_v2
as defined in execution-apis#630, enabling compatibility with the latest Fulu-era blob response format.Summary of Changes
BlobsBundler
interface to abstract over both v1 and v2 blob bundle implementationsconstructGenericBeaconBlock
logic to support type assertions for bothBlobsBundle
andBlobsBundleV2
based on the block versionGetBlobs()
andGetProofs()
from theBlobsBundler
interfaceBlobsBundleV2
andExecutionBundleFulu