From 184d3802b6c8db3e1d7c6b2fb7331a81a6eddfed Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 3 Jul 2021 16:13:25 +0300 Subject: [PATCH] remove dead code --- blockstore/splitstore/splitstore.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 9aca63ec9..523a11442 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -636,20 +636,6 @@ func (s *SplitStore) isVMCopyContext() bool { return strings.Contains(sk, "filecoin-project/lotus/chain/vm.Copy") } -func (s *SplitStore) isBlockHeader(c cid.Cid) (isBlock bool, err error) { - if c.Prefix().Codec != cid.DagCBOR { - return false, nil - } - - err = s.view(c, func(data []byte) error { - var hdr types.BlockHeader - isBlock = hdr.UnmarshalCBOR(bytes.NewBuffer(data)) == nil - return nil - }) - - return isBlock, err -} - func (s *SplitStore) trackTxnRef(c cid.Cid, recursive bool) error { if s.txnProtect == nil { // not compacting