diff --git a/parity/configuration.rs b/parity/configuration.rs index 9c53fa235..21601c66b 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -820,8 +820,8 @@ impl Configuration { let secretstore_path = replace_home(&data_path, &self.args.flag_secretstore_path); let ui_path = replace_home(&data_path, &self.args.flag_ui_path); - if self.args.flag_geth && !cfg!(windows) { - let geth_root = if self.args.flag_testnet { path::ethereum::test() } else { path::ethereum::default() }; + if self.args.flag_geth && !cfg!(windows) { + let geth_root = if self.chain() == 'testnet'.to_owned() { path::ethereum::test() } else { path::ethereum::default() }; ::std::fs::create_dir_all(geth_root.as_path()).unwrap_or_else( |e| warn!("Failed to create '{}' for geth mode: {}", &geth_root.to_str().unwrap(), e)); } @@ -1223,7 +1223,7 @@ mod tests { // then assert_eq!(conf.network_settings(), NetworkSettings { name: "testname".to_owned(), - chain: "ropsten".to_owned(), + chain: "kovan".to_owned(), network_port: 30303, rpc_enabled: true, rpc_interface: "local".to_owned(),