-
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
Beacon-api: broadcast blobs in the event of seen block #13830
Conversation
a99bd6f
to
50ebcfd
Compare
@@ -2072,3 +2085,26 @@ func (s *Server) GetDepositSnapshot(w http.ResponseWriter, r *http.Request) { | |||
}, | |||
) | |||
} | |||
|
|||
func (s *Server) broadcastBlobSidecars(ctx context.Context, sb *eth.GenericSignedBeaconBlock) 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.
is it worth using the generic signed beacon block here?
if you just pass the Blobs and kzgProofs from the argument it'll save the New SignedBeacon block and Get deneb calls ( not sure if that saves anything) but I think you have the data of denebBlock already here
f2c0da4
to
90b253a
Compare
"index": sc.Index, | ||
"slot": sc.SignedBlockHeader.Header.Slot, | ||
"kzgCommitment": fmt.Sprintf("%#x", sc.KzgCommitment), | ||
}).Info("Broadcasted blob sidecar") |
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.
just to help future debugging this function only runs for equivocatedblocks, can we add something to notify it for the reader of the logs?
811f0b2
to
c168e79
Compare
c168e79
to
4ac7f02
Compare
d38c358
to
52f0dc0
Compare
52f0dc0
to
723407a
Compare
This reverts commit 091e77e.
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
c6e7b36
to
416a1e9
Compare
* Beacon-api: broadcast blobs in the event of seen block * Fix parameters * Fix test * Check forkchoice * Ran go format * Revert "Ran go format" This reverts commit 091e77e. * James feedback * Radek's feedback Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Fix bad tests --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Fixes #13824
As demanded by some mev-boost relayer configurations, we will broadcast blobs even if the event block of the same slot is observed over p2p. There's no reason to refrain from broadcasting these blobs, considering there is no risk of equivocation.
buildBlobSidecars
for use across both the gRPC and REST packages.errEquivocatedBlock
.errEquivocatedBlock
, then broadcast the blob sidecar.