Another nil check

This commit is contained in:
terence tsao
2023-01-27 10:15:04 +01:00
parent 4e3b1881ed
commit 879a694ab3

View File

@@ -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")
}