diff --git a/chain/store/messages.go b/chain/store/messages.go index 3686f74f462..c23f900d7cb 100644 --- a/chain/store/messages.go +++ b/chain/store/messages.go @@ -212,13 +212,8 @@ func (cs *ChainStore) MessagesForTipset(ctx context.Context, ts *types.TipSet) ( var out []types.ChainMsg for _, bm := range bmsgs { - for _, blsm := range bm.BlsMessages { - out = append(out, blsm) - } - - for _, secm := range bm.SecpkMessages { - out = append(out, secm) - } + out = append(out, bm.BlsMessages...) + out = append(out, bm.SecpkMessages...) } return out, nil diff --git a/chain/store/snapshot.go b/chain/store/snapshot.go index 5e218fa3648..f1bc800e09c 100644 --- a/chain/store/snapshot.go +++ b/chain/store/snapshot.go @@ -656,9 +656,7 @@ func (cs *ChainStore) WalkSnapshot(ctx context.Context, ts *types.TipSet, inclRe } if b.Height > 0 { - for _, p := range b.Parents { - blocksToWalk = append(blocksToWalk, p) - } + blocksToWalk = append(blocksToWalk, b.Parents...) } else { // include the genesis block cids = append(cids, b.Parents...)