v1.27.0-a #10

Closed
jonathanface wants to merge 473 commits from v1.27.0-a into master
Showing only changes of commit 95b6483ad9 - Show all commits

View File

@ -661,23 +661,11 @@ func removeExistingChain(cctx *cli.Context, lr repo.Repo) error {
} }
}() }()
cfg, err := lockedRepo.Config()
if err != nil {
return xerrors.Errorf("error getting config: %w", err)
}
fullNodeConfig, ok := cfg.(*config.FullNode)
if !ok {
return xerrors.Errorf("wrong config type: %T", cfg)
}
if fullNodeConfig.Chainstore.EnableSplitstore {
log.Info("removing splitstore directory...") log.Info("removing splitstore directory...")
err = deleteSplitstoreDir(lockedRepo) err = deleteSplitstoreDir(lockedRepo)
if err != nil { if err != nil {
return xerrors.Errorf("error removing splitstore directory: %w", err) return xerrors.Errorf("error removing splitstore directory: %w", err)
} }
}
// Get the base repo path // Get the base repo path
repoPath := lockedRepo.Path() repoPath := lockedRepo.Path()