Skip to content

Commit

Permalink
Merge pull request #24 from ethpandaops/scheduler-rewrite
Browse files Browse the repository at this point in the history
Task scheduler improvements
  • Loading branch information
pk910 authored Jul 8, 2024
2 parents 014a184 + 5d86333 commit c1429ab
Show file tree
Hide file tree
Showing 51 changed files with 1,125 additions and 942 deletions.
18 changes: 18 additions & 0 deletions pkg/coordinator/clients/consensus/block_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,21 @@ func GetExecutionExtraData(v *spec.VersionedSignedBeaconBlock) ([]byte, error) {
return nil, errors.New("unknown version")
}
}

func GetBlockBody(v *spec.VersionedSignedBeaconBlock) any {
//nolint:exhaustive // ignore
switch v.Version {
case spec.DataVersionPhase0:
return v.Phase0
case spec.DataVersionAltair:
return v.Altair
case spec.DataVersionBellatrix:
return v.Bellatrix
case spec.DataVersionCapella:
return v.Capella
case spec.DataVersionDeneb:
return v.Deneb
default:
return nil
}
}
Loading

0 comments on commit c1429ab

Please sign in to comment.