From c566f47dcb90abd9c4104e84a14ae0cff66f1d49 Mon Sep 17 00:00:00 2001 From: jules01 Date: Tue, 31 Jan 2023 20:56:01 +0200 Subject: [PATCH] - removed PubKeysBitmap check on the shard header --- data/block/block.go | 3 --- data/block/blockChecks_test.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/data/block/block.go b/data/block/block.go index eeabaf68..cc8a1fd8 100644 --- a/data/block/block.go +++ b/data/block/block.go @@ -597,9 +597,6 @@ func (h *Header) CheckFieldsForNil() error { if h.RandSeed == nil { return fmt.Errorf("%w in Header.RandSeed", data.ErrNilValue) } - if h.PubKeysBitmap == nil { - return fmt.Errorf("%w in Header.PubKeysBitmap", data.ErrNilValue) - } if h.RootHash == nil { return fmt.Errorf("%w in Header.RootHash", data.ErrNilValue) } diff --git a/data/block/blockChecks_test.go b/data/block/blockChecks_test.go index c4060c24..e4d99a80 100644 --- a/data/block/blockChecks_test.go +++ b/data/block/blockChecks_test.go @@ -14,6 +14,7 @@ import ( var headerV1ExceptionFields = []string{ "Signature", "LeaderSignature", + "PubKeysBitmap", "MetaBlockHashes", "EpochStartMetaHash", "ReceiptsHash",