Added a node name to init so we can run multiple nodes with stable identifiers
This commit is contained in:
@@ -13,9 +13,9 @@ pub(crate) fn init(home: PathBuf, config: SideNodeConfig) -> Result<(), std::io:
|
||||
let (key_path, config_path) = side_paths(home.clone());
|
||||
|
||||
let pem = keys::setup();
|
||||
keys::write_pem(key_path, pem)?;
|
||||
keys::write(key_path, pem)?;
|
||||
|
||||
config::write_config_to_file(&config, &config_path).expect("unable to write config file");
|
||||
config::write(&config, &config_path).expect("unable to write config file");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user