mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 13:58:09 -05:00
Another nil check
This commit is contained in:
@@ -61,7 +61,7 @@ func (s *Service) beaconBlockAndBlobsSidecarByRootRPCHandler(ctx context.Context
|
||||
return err
|
||||
}
|
||||
|
||||
if blk == nil {
|
||||
if blk == nil || blk.IsNil() {
|
||||
s.writeErrorResponseToStream(responseCodeInvalidRequest, "block not found!", stream)
|
||||
return errors.New("block not found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user