New default paths (#11641)

This commit is contained in:
Artem Vorotnikov
2020-04-24 21:05:15 +03:00
committed by GitHub
parent 4f3a128194
commit 74e9293f0f
2 changed files with 33 additions and 41 deletions

View File

@@ -172,7 +172,9 @@ fn key_dir(location: &str, password: Option<Password>) -> Result<Box<dyn KeyDire
"geth-test" => RootDiskDirectory::create(dir::geth(true))?,
path if path.starts_with("parity") => {
let chain = path.split('-').nth(1).unwrap_or("ethereum");
let path = dir::parity(chain);
let mut path = dir::default_data_pathbuf();
path.push("keys");
path.push(chain);
RootDiskDirectory::create(path)?
},
path => RootDiskDirectory::create(path)?,