From 8c253a8fb76aeff8415768a8dc58cd1a33c1c969 Mon Sep 17 00:00:00 2001 From: Owen Jacob Date: Thu, 5 Dec 2024 15:43:08 +0100 Subject: [PATCH] Add number of reward partitions field to getBlock response --- rpc/getBlock.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpc/getBlock.go b/rpc/getBlock.go index 2bbeea05..eae1a1f6 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 {