From 87a067e32f6d8620fd21dc8fb839c113f14d2c18 Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Sat, 23 Mar 2024 21:11:50 -0400 Subject: [PATCH] cleanup --- vms/platformvm/state/state.go | 9 ++------- vms/platformvm/state/state_test.go | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/vms/platformvm/state/state.go b/vms/platformvm/state/state.go index a81c48c0f74..38310a70378 100644 --- a/vms/platformvm/state/state.go +++ b/vms/platformvm/state/state.go @@ -181,7 +181,6 @@ type State interface { // TODO: Remove after v1.12.x is activated type stateBlk struct { - Blk block.Block Bytes []byte `serialize:"true"` Status choices.Status `serialize:"true"` } @@ -2286,10 +2285,6 @@ func parseStoredBlock(blkBytes []byte) (block.Block, bool, error) { return nil, false, err } - blkState.Blk, err = block.Parse(block.GenesisCodec, blkState.Bytes) - if err != nil { - return nil, false, err - } - - return blkState.Blk, true, nil + blk, err = block.Parse(block.GenesisCodec, blkState.Bytes) + return blk, true, err } diff --git a/vms/platformvm/state/state_test.go b/vms/platformvm/state/state_test.go index 85aebda709b..b0f6afa596f 100644 --- a/vms/platformvm/state/state_test.go +++ b/vms/platformvm/state/state_test.go @@ -1385,7 +1385,6 @@ func TestParsedStateBlock(t *testing.T) { for _, blk := range blks { stBlk := stateBlk{ - Blk: blk, Bytes: blk.Bytes(), Status: choices.Accepted, }