Skip to content

Commit a8394d3

Browse files
removing blockstore, for different PR
1 parent 8ab8a80 commit a8394d3

File tree

2 files changed

+0
-216
lines changed

2 files changed

+0
-216
lines changed

share/eds/blockstore.go

-201
This file was deleted.

share/eds/store.go

-15
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"github.com/filecoin-project/dagstore/mount"
1212
"github.com/filecoin-project/dagstore/shard"
1313
"github.com/ipfs/go-datastore"
14-
blockstore "github.com/ipfs/go-ipfs-blockstore"
1514

1615
"github.com/celestiaorg/celestia-node/share"
1716

@@ -30,7 +29,6 @@ const (
3029
// over the whole chain of EDS block data and getting data by namespace.
3130
type Store struct {
3231
dgstr *dagstore.DAGStore
33-
bs blockstore.Blockstore
3432
mounts *mount.Registry
3533

3634
topIdx index.Inverted
@@ -79,11 +77,6 @@ func NewStore(basepath string, ds datastore.Batching) (*Store, error) {
7977
mounts: r,
8078
}
8179

82-
s.bs, err = NewEDSBlockstore(s)
83-
if err != nil {
84-
return nil, fmt.Errorf("failed to create EDSBlockstore: %w", err)
85-
}
86-
8780
return s, nil
8881
}
8982

@@ -157,14 +150,6 @@ func (s *Store) GetCAR(ctx context.Context, root share.Root) (io.ReadCloser, err
157150
}
158151
}
159152

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-
168153
// Remove removes EDS from Store by the given share.Root and cleans up all the indexing.
169154
func (s *Store) Remove(ctx context.Context, root share.Root) error {
170155
key := root.String()

0 commit comments

Comments
 (0)