diff --git a/ol/onboard/src/commands/files_cmd.rs b/ol/onboard/src/commands/files_cmd.rs index 256513a6d9..a789d52ad0 100644 --- a/ol/onboard/src/commands/files_cmd.rs +++ b/ol/onboard/src/commands/files_cmd.rs @@ -53,7 +53,7 @@ pub fn genesis_files( // 0L convention is for the namespace of the operator to be appended by '-oper' let namespace = miner_config.profile.auth_key.clone() + "-oper"; - node_files::create_files( + node_files::write_node_config_files( home_dir.clone(), chain_id.unwrap_or(1), &github_org.clone().unwrap_or("OLSF".to_string()), diff --git a/ol/onboard/src/commands/wizard_val_cmd.rs b/ol/onboard/src/commands/wizard_val_cmd.rs index f57d5f0d61..10238cb7fd 100644 --- a/ol/onboard/src/commands/wizard_val_cmd.rs +++ b/ol/onboard/src/commands/wizard_val_cmd.rs @@ -18,6 +18,8 @@ use reqwest::Url; use serde_json::Value; use std::{fs::File, io::Write, path::PathBuf}; use txs::{commands::autopay_batch_cmd, submit_tx}; +use libra_genesis_tool::node_files; + /// `val-wizard` subcommand #[derive(Command, Debug, Default, Options)] pub struct ValWizardCmd { @@ -101,15 +103,6 @@ impl Runnable for ValWizardCmd { } } - // // Build Genesis and node.yaml file - // files_cmd::node_config_files( - // &cfg, - // &self.chain_id, - // &self.github_org, - // &self.repo, - // &self.rebuild_genesis, - // &false, - // ); let home_dir = app_config.workspace.node_home.to_owned(); // 0L convention is for the namespace of the operator to be appended by '-oper' @@ -134,7 +127,7 @@ impl Runnable for ValWizardCmd { if !self.skip_mining { // Mine Block - miner::block::write_genesis(&miner_config); + miner::block::write_genesis(&app_config); status_ok!( "\nGenesis proof complete", "\n...........................\n"