Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 21, 2023
1 parent a0f9b97 commit cc2ce46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tools/config/src/config_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl ConfigCli {
println!("Validators' config initialized.");
Ok(())
}
Some(ConfigSub::FullnodeInit { home_path, vfn }) => {
Some(ConfigSub::FullnodeInit { home_path, vfn: _ }) => {
download_genesis(home_path.to_owned()).await?;
println!("downloaded genesis block");

Expand Down
11 changes: 2 additions & 9 deletions tools/config/src/make_yaml_public_fullnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,10 @@ pub async fn init_fullnode_yaml(
overwrite_peers: bool,
) -> anyhow::Result<PathBuf> {
let waypoint = get_genesis_waypoint(home_dir.clone()).await?;

let yaml = if vfn {
make_private_vfn_yaml(home_dir.clone(), waypoint)?
} else {
make_fullnode_yaml(home_dir.clone(), waypoint)?
};

let filename = if vfn { "vfn.yaml" } else { "fullnode.yaml" };

let yaml = make_fullnode_yaml(home_dir.clone(), waypoint)?;
let home = home_dir.unwrap_or_else(global_config_dir);
let p = home.join(FN_FILENAME);

std::fs::write(&p, yaml)?;

if overwrite_peers {
Expand Down

0 comments on commit cc2ce46

Please sign in to comment.