Skip to content

Commit

Permalink
set block version to 2 for v2 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Aug 20, 2024
1 parent 534ca5b commit 31ee33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/antelope/spring_v1/hydrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 31ee33a

Please sign in to comment.