Update ProposeBeaconBlock Prysm RPC for Deneb (Non builder)#12495
Update ProposeBeaconBlock Prysm RPC for Deneb (Non builder)#12495terencechain merged 2 commits intodeneb-integrationfrom
ProposeBeaconBlock Prysm RPC for Deneb (Non builder)#12495Conversation
| return nil, fmt.Errorf("could not broadcast block: %v", err) | ||
| } | ||
|
|
||
| root, err := blk.Block().HashTreeRoot() |
There was a problem hiding this comment.
why is this check after the broadcast?
There was a problem hiding this comment.
It's not really a check, it calculates the root for logging, and we can remove the log. But it's also later used in ReceiveBlock anyway. Moving it after the broadcast to reduce latency before the gossip
| scs := make([]*ethpb.BlobSidecar, len(b.Deneb.Blobs)) | ||
| for i, blob := range b.Deneb.Blobs { | ||
| if err := vs.P2P.BroadcastBlob(ctx, blob.Message.Index, blob); err != nil { | ||
| log.WithError(err).Error("Could not broadcast blob") |
There was a problem hiding this comment.
can we log at which blob this message failed ? among the total blobs broadcasted?
| if !ok { | ||
| return nil, status.Error(codes.Internal, "Could not cast block to Deneb") | ||
| } | ||
| scs := make([]*ethpb.BlobSidecar, len(b.Deneb.Blobs)) |
There was a problem hiding this comment.
does this need a validation check on len for blobs, or does receiving handle that
There was a problem hiding this comment.
I think that's a good check to have, I'll add it in
| }).Debug("Broadcasting block") | ||
|
|
||
| if blk.Version() >= version.Deneb { | ||
| b, ok := req.GetBlock().(*ethpb.GenericSignedBeaconBlock_Deneb) |
There was a problem hiding this comment.
This could still be blinded right? , it was unblinded above but the request block would still be possibly blinded. that being said if it was blinded the blobs would also need to be unblinded below.
There was a problem hiding this comment.
Right, I'm not handling the blinded logic in this PR. I'll clarify this in the title
ProposeBeaconBlock Prysm RPC for DenebProposeBeaconBlock Prysm RPC for Deneb (Non builder)
Changes
ProposeBeaconBlockabsorbsproposeGenericBeaconBlock.proposeGenericBeaconBlockis becoming harder to maintain.