diff --git a/node/impl/full/chain.go b/node/impl/full/chain.go index 15eb6e5a685..ca245dcdad3 100644 --- a/node/impl/full/chain.go +++ b/node/impl/full/chain.go @@ -654,9 +654,9 @@ func (a *ChainAPI) ChainBlockstoreInfo(ctx context.Context) (map[string]interfac return info.Info(), nil } -func (a *ChainAPI) ChainPrune(ctx context.Context, opts map[string]interface{}) error { +func (a *ChainAPI) ChainPrune(ctx context.Context, opts api.PruneOpts) error { pruner, ok := a.BaseBlockstore.(interface { - PruneChain(opts map[string]interface{}) error + PruneChain(opts api.PruneOpts) error }) if !ok { return xerrors.Errorf("base blockstore does not support pruning (%T)", a.BaseBlockstore)