From c5b40e4e1c232a71a9a9361333633f23ead947ff Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Fri, 22 Jul 2022 11:15:57 +0300 Subject: [PATCH 1/2] remove omit empty --- data/api/apiBlock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/api/apiBlock.go b/data/api/apiBlock.go index 38b777308..e42c3cb7f 100644 --- a/data/api/apiBlock.go +++ b/data/api/apiBlock.go @@ -62,8 +62,8 @@ type NotarizedBlock struct { // EpochStartShardData is a structure that holds data about the epoch start shard data type EpochStartShardData struct { - ShardID uint32 `json:"shardID,omitempty"` - Epoch uint32 `json:"epoch,omitempty"` + ShardID uint32 `json:"shardID"` + Epoch uint32 `json:"epoch"` Round uint64 `json:"round,omitempty"` Nonce uint64 `json:"nonce,omitempty"` HeaderHash string `json:"headerHash,omitempty"` From 6fd09c5dc424aaa77477a76ef673225a714ca1da Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Fri, 22 Jul 2022 11:18:42 +0300 Subject: [PATCH 2/2] small change --- data/api/apiBlock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/api/apiBlock.go b/data/api/apiBlock.go index e42c3cb7f..85b878be3 100644 --- a/data/api/apiBlock.go +++ b/data/api/apiBlock.go @@ -62,7 +62,7 @@ type NotarizedBlock struct { // EpochStartShardData is a structure that holds data about the epoch start shard data type EpochStartShardData struct { - ShardID uint32 `json:"shardID"` + ShardID uint32 `json:"shard"` Epoch uint32 `json:"epoch"` Round uint64 `json:"round,omitempty"` Nonce uint64 `json:"nonce,omitempty"`