From 8e67ae003e4d53a0dd999bf808207021052d1c97 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 8 Aug 2018 10:36:11 -0500 Subject: [PATCH] [release-v1.3] config: Warn if testnet2 database exists. --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index 828268a9..f256de60 100644 --- a/config.go +++ b/config.go @@ -646,6 +646,7 @@ func loadConfig() (*config, []string, error) { cfg.DataDir = cleanAndExpandPath(cfg.DataDir) var oldTestNets []string oldTestNets = append(oldTestNets, filepath.Join(cfg.DataDir, "testnet")) + oldTestNets = append(oldTestNets, filepath.Join(cfg.DataDir, "testnet2")) cfg.DataDir = filepath.Join(cfg.DataDir, activeNetParams.Name) logRotator = nil if !cfg.NoFileLogging {