Skip to content

Commit

Permalink
feat: add support for DataVersionDeneb in handleEthV2BeaconBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Aug 29, 2023
1 parent bc53dbd commit 8b2fa03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ func (h *Handler) handleEthV2BeaconBlocks(ctx context.Context, r *http.Request,
ContentTypeJSON: block.Capella.MarshalJSON,
ContentTypeSSZ: block.Capella.MarshalSSZ,
})
case spec.DataVersionDeneb:
rsp = NewSuccessResponse(ContentTypeResolvers{
ContentTypeJSON: block.Deneb.MarshalJSON,
ContentTypeSSZ: block.Deneb.MarshalSSZ,
})
default:
return NewInternalServerErrorResponse(nil), errors.New("unknown block version")
}
Expand Down

0 comments on commit 8b2fa03

Please sign in to comment.