Skip to content

Commit

Permalink
Merge pull request #28 from samcm/feat/genesis-beacon-block
Browse files Browse the repository at this point in the history
feat: Support /eth/v2/beacon/blocks/genesis
  • Loading branch information
samcm authored Aug 29, 2022
2 parents b1e73fe + 11d3b7c commit ae91dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/checkpoint-sync/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
beacon:
upstreams:
- name: state-provider
address: https://${{ inputs.network }}.checkpoint-sync.ethdevops.io
address: https://${{ inputs.network }}-debug.checkpoint-sync.ethdevops.io
timeoutSeconds: 30
dataProvider: true
checkpointz:
Expand Down
2 changes: 2 additions & 0 deletions pkg/service/eth/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func (h *Handler) BeaconBlock(ctx context.Context, blockID BlockIdentifier) (*sp
}()

switch blockID.Type() {
case BlockIDGenesis:
return h.provider.GetBlockBySlot(ctx, phase0.Slot(0))
case BlockIDSlot:
slot, err := NewSlotFromString(blockID.Value())
if err != nil {
Expand Down

0 comments on commit ae91dcc

Please sign in to comment.