mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 05:31:09 +00:00
Move create network folder structure to top level of start_service (#1224)
Fixes issue where the network folder is not created when run with '--node-key' arg
This commit is contained in:
committed by
Bastian Köcher
parent
ccf575454e
commit
da822276dd
@@ -35,8 +35,6 @@ pub fn obtain_private_key(
|
||||
|
||||
} else {
|
||||
if let Some(ref path) = config.net_config_path {
|
||||
fs::create_dir_all(Path::new(path))?;
|
||||
|
||||
// Try fetch the key from a the file containing the secret.
|
||||
let secret_path = Path::new(path).join(SECRET_FILE);
|
||||
match load_private_key_from_file(&secret_path) {
|
||||
|
||||
Reference in New Issue
Block a user