Skip to content

Commit

Permalink
patch onboard
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed May 2, 2021
1 parent b854b44 commit b22670c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ol/onboard/src/commands/files_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
13 changes: 3 additions & 10 deletions ol/onboard/src/commands/wizard_val_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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'
Expand All @@ -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"
Expand Down

0 comments on commit b22670c

Please sign in to comment.