Skip to content

Commit

Permalink
Potuz feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Sep 18, 2024
1 parent 788b3ae commit 329e685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon-chain/rpc/prysm/v1alpha1/validator/proposer_epbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func (vs *Server) SubmitSignedExecutionPayloadEnvelope(ctx context.Context, env

// SubmitSignedExecutionPayloadHeader submits a signed execution payload header to the beacon node.
func (vs *Server) SubmitSignedExecutionPayloadHeader(ctx context.Context, h *enginev1.SignedExecutionPayloadHeader) (*emptypb.Empty, error) {
if vs.TimeFetcher.CurrentSlot() != h.Message.Slot && vs.TimeFetcher.CurrentSlot() != h.Message.Slot-1 {
currentSlot := vs.TimeFetcher.CurrentSlot()
if currentSlot != h.Message.Slot && currentSlot != h.Message.Slot-1 {
return nil, status.Errorf(codes.InvalidArgument, "invalid slot: current slot %d, got %d", vs.TimeFetcher.CurrentSlot(), h.Message.Slot)
}

Expand Down

0 comments on commit 329e685

Please sign in to comment.