|
|
@ -1202,11 +1202,11 @@ func setDataDir(ctx *cli.Context, cfg *node.Config) { |
|
|
|
cfg.DataDir = ctx.GlobalString(DataDirFlag.Name) |
|
|
|
cfg.DataDir = ctx.GlobalString(DataDirFlag.Name) |
|
|
|
case ctx.GlobalBool(DeveloperFlag.Name): |
|
|
|
case ctx.GlobalBool(DeveloperFlag.Name): |
|
|
|
cfg.DataDir = "" // unless explicitly requested, use memory databases
|
|
|
|
cfg.DataDir = "" // unless explicitly requested, use memory databases
|
|
|
|
case ctx.GlobalBool(TestnetFlag.Name): |
|
|
|
case ctx.GlobalBool(TestnetFlag.Name) && cfg.DataDir == node.DefaultDataDir(): |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "testnet") |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "testnet") |
|
|
|
case ctx.GlobalBool(RinkebyFlag.Name): |
|
|
|
case ctx.GlobalBool(RinkebyFlag.Name) && cfg.DataDir == node.DefaultDataDir(): |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "rinkeby") |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "rinkeby") |
|
|
|
case ctx.GlobalBool(GoerliFlag.Name): |
|
|
|
case ctx.GlobalBool(GoerliFlag.Name) && cfg.DataDir == node.DefaultDataDir(): |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "goerli") |
|
|
|
cfg.DataDir = filepath.Join(node.DefaultDataDir(), "goerli") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|