Skip to content

Commit

Permalink
[lbry]: btcd: cleanup claim databases for regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Aug 20, 2021
1 parent bf86d03 commit 7154e57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions btcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ func removeRegressionDB(dbPath string) error {
}
}

dbPath = filepath.Join(cfg.DataDir, activeNetParams.Name, "claim_dbs")
btcdLog.Infof("Removing regression test claim databases from '%s'", dbPath)
err = os.RemoveAll(dbPath)
if err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit 7154e57

Please sign in to comment.