This commit is contained in:
Aarsh Shah 2021-11-17 14:55:09 +04:00
parent f8c675bc5e
commit d196c236b8

View File

@ -8,6 +8,10 @@ import (
"testing"
"time"
mh "github.com/multiformats/go-multihash"
carindex "github.com/ipld/go-car/v2/index"
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/node/config"
@ -132,6 +136,14 @@ type mockDagStore struct {
close chan struct{}
}
func (m *mockDagStore) GetIterableIndex(key shard.Key) (carindex.IterableIndex, error) {
return nil, nil
}
func (m *mockDagStore) ShardsContainingMultihash(h mh.Multihash) ([]shard.Key, error) {
return nil, nil
}
func (m *mockDagStore) GetShardKeysForCid(c cid.Cid) ([]shard.Key, error) {
panic("implement me")
}