diff --git a/btcd.go b/btcd.go index 2fc3f8cc..19ef61eb 100644 --- a/btcd.go +++ b/btcd.go @@ -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 }