From 7154e57d49c1be3a2a41f2b8fb485ab4c8961d5e Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Fri, 20 Aug 2021 12:25:52 -0400 Subject: [PATCH] [lbry]: btcd: cleanup claim databases for regression test --- btcd.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 }