mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
config: Warn if testnet2 database exists.
This commit is contained in:
parent
553c8a6efb
commit
f0e65ec62f
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user