remove unused GetGenesis method from ChainAccessor interface
This commit is contained in:
parent
dc8139a1d2
commit
5c514504f7
@ -106,7 +106,6 @@ type Config struct {
|
||||
// ChainAccessor allows the Splitstore to access the chain. It will most likely
|
||||
// be a ChainStore at runtime.
|
||||
type ChainAccessor interface {
|
||||
GetGenesis() (*types.BlockHeader, error)
|
||||
GetTipsetByHeight(context.Context, abi.ChainEpoch, *types.TipSet, bool) (*types.TipSet, error)
|
||||
GetHeaviestTipSet() *types.TipSet
|
||||
SubscribeHeadChanges(change func(revert []*types.TipSet, apply []*types.TipSet) error)
|
||||
|
@ -207,10 +207,6 @@ func (c *mockChain) revert(count int) {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *mockChain) GetGenesis() (*types.BlockHeader, error) {
|
||||
return c.genesis, nil
|
||||
}
|
||||
|
||||
func (c *mockChain) GetTipsetByHeight(_ context.Context, epoch abi.ChainEpoch, _ *types.TipSet, _ bool) (*types.TipSet, error) {
|
||||
c.Lock()
|
||||
defer c.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user