diff --git a/chain/store/splitstore/liveset.go b/chain/store/splitstore/liveset.go new file mode 100644 index 000000000..51852c3d5 --- /dev/null +++ b/chain/store/splitstore/liveset.go @@ -0,0 +1,11 @@ +package splitstore + +import ( + cid "github.com/ipfs/go-cid" +) + +type LiveSet interface { + Mark(cid.Cid) error + Has(cid.Cid) (bool, error) + Close() error +} diff --git a/chain/store/splitstore/snoop.go b/chain/store/splitstore/snoop.go new file mode 100644 index 000000000..b31ea16e9 --- /dev/null +++ b/chain/store/splitstore/snoop.go @@ -0,0 +1,15 @@ +package splitstore + +import ( + cid "github.com/ipfs/go-cid" + + "github.com/filecoin-project/go-state-types/abi" +) + +type TrackingStore interface { + Put(cid.Cid, abi.ChainEpoch) error + PutBatch([]cid.Cid, abi.ChainEpoch) error + Get(cid.Cid) (abi.ChainEpoch, error) + Delete(cid.Cid) error + Keys() (<-chan cid.Cid, error) +} diff --git a/chain/store/splitstore/splitstore.go b/chain/store/splitstore/splitstore.go index a5366ecd9..7d82ca709 100644 --- a/chain/store/splitstore/splitstore.go +++ b/chain/store/splitstore/splitstore.go @@ -41,20 +41,6 @@ type SplitStore struct { compacting bool } -type TrackingStore interface { - Put(cid.Cid, abi.ChainEpoch) error - PutBatch([]cid.Cid, abi.ChainEpoch) error - Get(cid.Cid) (abi.ChainEpoch, error) - Delete(cid.Cid) error - Keys() (<-chan cid.Cid, error) -} - -type LiveSet interface { - Mark(cid.Cid) error - Has(cid.Cid) (bool, error) - Close() error -} - var _ bstore.Blockstore = (*SplitStore)(nil) // Blockstore interface