Skip to content

Commit

Permalink
fixup! BlobSidecarsByRange rpc handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed Jun 8, 2023
1 parent 4c8d4ed commit 146f15f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beacon-chain/sync/rpc_beacon_blocks_by_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ type rangeParams struct {
}

func validateRangeRequest(r *pb.BeaconBlocksByRangeRequest, current primitives.Slot) (rangeParams, error) {
if r.Count == 0 {
return rangeParams{}, p2ptypes.ErrInvalidRequest
}
rp := rangeParams{
start: r.StartSlot,
size: r.Count,
Expand Down

0 comments on commit 146f15f

Please sign in to comment.