From 31ee33a672c717e336aac81cd856373a9cca37e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Sch=C3=B6ll?= Date: Tue, 20 Aug 2024 13:25:56 +0200 Subject: [PATCH] set block version to 2 for v2 blocks --- codec/antelope/spring_v1/hydrator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/antelope/spring_v1/hydrator.go b/codec/antelope/spring_v1/hydrator.go index 5763611..1ddaaec 100644 --- a/codec/antelope/spring_v1/hydrator.go +++ b/codec/antelope/spring_v1/hydrator.go @@ -91,7 +91,7 @@ func (h *Hydrator) HydrateBlock(block *pbantelope.Block, input []byte, version s return fmt.Errorf("unmarshalling signed block (spring v2): %w", err) } - block.Version = 1 + block.Version = 2 block.Header = antelope.BlockHeaderToDEOS(&signedBlock.BlockHeader) block.BlockExtensions = antelope.ExtensionsToDEOS(signedBlock.BlockExtensions)