Skip to content

Commit

Permalink
Add number of reward partitions field to getBlock response (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenJacob authored Jan 16, 2025
1 parent 3a9b156 commit 3786857
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpc/getBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ type GetBlockResult struct {

// The number of blocks beneath this block.
BlockHeight *uint64 `json:"blockHeight"`

// The number of reward partitions.
// Present for the first block in the epoch otherwise Nil.
NumRewardPartitions *uint64 `json:"numRewardPartitions"`
}

func (cl *Client) GetParsedBlockWithOpts(
Expand Down Expand Up @@ -230,6 +234,10 @@ type GetParsedBlockResult struct {

// The number of blocks beneath this block.
BlockHeight *uint64 `json:"blockHeight"`

// The number of reward partitions.
// Present for the first block in the epoch otherwise Nil.
NumRewardPartitions *uint64 `json:"numRewardPartitions"`
}

type ParsedTransactionWithMeta struct {
Expand Down

0 comments on commit 3786857

Please sign in to comment.