Skip to content

Commit

Permalink
chore(node-api): Add json tags to returned beacon block header data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
calbera authored Oct 18, 2024
1 parent e608243 commit b1c61d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/consensus-types/pkg/types/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ var (
// BeaconBlockHeader represents the base of a beacon block header.
type BeaconBlockHeader struct {
// Slot represents the position of the block in the chain.
Slot math.Slot
Slot math.Slot `json:"slot"`
// ProposerIndex is the index of the validator who proposed the block.
ProposerIndex math.ValidatorIndex
ProposerIndex math.ValidatorIndex `json:"proposer_index"`
// ParentBlockRoot is the hash of the parent block
ParentBlockRoot common.Root
ParentBlockRoot common.Root `json:"parent_block_root"`
// StateRoot is the hash of the state at the block.
StateRoot common.Root
StateRoot common.Root `json:"state_root"`
// BodyRoot is the root of the block body.
BodyRoot common.Root
BodyRoot common.Root `json:"body_root"`
}

/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit b1c61d0

Please sign in to comment.