From 73b3e08ccadd970158a9726c6d3245a38f146f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Sch=C3=B6ll?= Date: Mon, 10 Jun 2024 22:37:54 +0200 Subject: [PATCH] fix block decoding --- codec/antelope/spring_v1/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/antelope/spring_v1/types.go b/codec/antelope/spring_v1/types.go index c0cfecb..85862d3 100644 --- a/codec/antelope/spring_v1/types.go +++ b/codec/antelope/spring_v1/types.go @@ -27,10 +27,10 @@ type LegacyBlockState struct { BlockID eos.Checksum256 `json:"id"` Header *eos.SignedBlockHeader `json:"header,omitempty"` PendingSchedule *eos.PendingSchedule `json:"pending_schedule"` - ActivatedProtocolFeatures *eos.ProtocolFeatureActivationSet `json:"activated_protocol_features,omitempty"` + ActivatedProtocolFeatures *eos.ProtocolFeatureActivationSet `json:"activated_protocol_features,omitempty" eos:"optional"` AdditionalSignatures []ecc.Signature `json:"additional_signatures"` - SignedBlock *SignedBlock `json:"block,omitempty"` + SignedBlock *SignedBlock `json:"block,omitempty" eos:"optional"` Validated bool `json:"validated"` ActionMrootSavanna eos.Checksum256 `json:"action_mroot_savanna,omitempty" eos:"optional"` }