@@ -11,7 +11,6 @@ import (
11
11
"github.com/filecoin-project/dagstore/mount"
12
12
"github.com/filecoin-project/dagstore/shard"
13
13
"github.com/ipfs/go-datastore"
14
- blockstore "github.com/ipfs/go-ipfs-blockstore"
15
14
16
15
"github.com/celestiaorg/celestia-node/share"
17
16
@@ -30,7 +29,6 @@ const (
30
29
// over the whole chain of EDS block data and getting data by namespace.
31
30
type Store struct {
32
31
dgstr * dagstore.DAGStore
33
- bs blockstore.Blockstore
34
32
mounts * mount.Registry
35
33
36
34
topIdx index.Inverted
@@ -79,11 +77,6 @@ func NewStore(basepath string, ds datastore.Batching) (*Store, error) {
79
77
mounts : r ,
80
78
}
81
79
82
- s .bs , err = NewEDSBlockstore (s )
83
- if err != nil {
84
- return nil , fmt .Errorf ("failed to create EDSBlockstore: %w" , err )
85
- }
86
-
87
80
return s , nil
88
81
}
89
82
@@ -157,14 +150,6 @@ func (s *Store) GetCAR(ctx context.Context, root share.Root) (io.ReadCloser, err
157
150
}
158
151
}
159
152
160
- // Blockstore returns an IPFS Blockstore providing access to individual shares/nodes of all EDS
161
- // registered on the Store. NOTE: The Blockstore does not store whole Celestia Blocks but IPFS
162
- // blocks. We represent `shares` and NMT Merkle proofs as IPFS blocks and IPLD nodes so Bitswap can
163
- // access those.
164
- func (s * Store ) Blockstore () blockstore.Blockstore {
165
- return s .bs
166
- }
167
-
168
153
// Remove removes EDS from Store by the given share.Root and cleans up all the indexing.
169
154
func (s * Store ) Remove (ctx context.Context , root share.Root ) error {
170
155
key := root .String ()
0 commit comments