remove unused GetGenesis method from ChainAccessor interface

This commit is contained in:
vyzo 2021-07-06 14:41:41 +03:00
parent dc8139a1d2
commit 5c514504f7
2 changed files with 0 additions and 5 deletions

View File

@ -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)

View File

@ -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()