Skip to content

Commit

Permalink
fixup! BlobSidecarsByRoot RPC handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed Jun 12, 2023
1 parent ef74fbb commit d716dc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon-chain/sync/rpc_blob_sidecars_by_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (s *Service) blobSidecarByRootRPCHandler(ctx context.Context, msg interface
if err := validateBlobByRootRequest(blobIdents); err != nil {
s.cfg.p2p.Peers().Scorers().BadResponsesScorer().Increment(stream.Conn().RemotePeer())
s.writeErrorResponseToStream(responseCodeInvalidRequest, err.Error(), stream)
return err
}
// Sort the identifiers so that requests for the same blob root will be adjacent, minimizing db lookups.
sort.Sort(blobIdents)
Expand Down

0 comments on commit d716dc8

Please sign in to comment.