-
Notifications
You must be signed in to change notification settings - Fork 1k
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
builder API: remove blinded blob sidecar #13202
Conversation
|
||
return sidecars, nil | ||
} | ||
//func blindBlobsBundleToSidecars(bundle *enginev1.BlindedBlobsBundle, blk interfaces.ReadOnlyBeaconBlock) ([]*ethpb.BlindedBlobSidecar, error) { |
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.
we can just delete these
// bidKzgCommitments holds the KZG commitments for a builder's beacon block. | ||
var bidKzgCommitments [][]byte //TODO: possibly change the architecture here to not use this package variable |
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.
let's just remove these
// TODO: update this for blobBundle processing | ||
//bidKzgCommitments = nil // Reset blind blobs bundle after use. | ||
//if err != nil { | ||
// return nil, status.Errorf(codes.Internal, "Could not convert blind blobs bundle to sidecar: %v", err) | ||
//} |
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.
same, we can remove these for now
791aa33
to
5f0d2eb
Compare
5f0d2eb
to
410c515
Compare
@@ -112,36 +110,35 @@ func (u *unblinder) unblindBuilderBlock(ctx context.Context) (interfaces.SignedB | |||
"txs": len(txs), | |||
}).Info("Retrieved full payload from builder") | |||
|
|||
bundle, err := unblindBlobsSidecars(u.blobs, blobsBundle) | |||
sidecars, err := unblindBlobsSidecars(u.b, blobsBundle) |
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.
should I replace this with buildBlobSidecars function? I would need to add the blobs bundle to the cache, perhaps I add it to the cache when I submit blinded block?
} | ||
|
||
func unblindBlobsSidecars(blindSidecars []*ethpb.SignedBlindedBlobSidecar, bundle *enginev1.BlobsBundle) ([]*ethpb.SignedBlobSidecar, error) { | ||
func unblindBlobsSidecars(block interfaces.SignedBeaconBlock, bundle *enginev1.BlobsBundle) ([]*ethpb.BlobSidecar, error) { |
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.
If I use buildBlobSidecars then I don't need this function
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.
lgtm
What type of PR is this?
Other
What does this PR do? Why is it needed?
Does not address proposer changes, Beacon API changes, and some deneb unit tests are commented out to be addressed in subsequent PRs
Which issues(s) does this PR fix?
Fixes #13201 and part of #13157,#13155
Addresses ethereum/builder-specs#90
Other notes for review