From 3786857b86e5100d4f13b7162d3bfad10070ea70 Mon Sep 17 00:00:00 2001 From: Owen Jacob Date: Thu, 16 Jan 2025 19:09:58 +0100 Subject: [PATCH] Add number of reward partitions field to getBlock response (#263) --- rpc/getBlock.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpc/getBlock.go b/rpc/getBlock.go index 2bbeea05f..eae1a1f67 100644 --- a/rpc/getBlock.go +++ b/rpc/getBlock.go @@ -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( @@ -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 {