Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add number of reward partitions field to getBlock response #263

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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