Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: check for existing edge config
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Oct 11, 2023
1 parent d45aae6 commit 5dfa68d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions crates/topos/src/components/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,27 @@ pub(crate) async fn handle_command(

let mut processes = FuturesUnordered::new();

// Edge
// Edge node
if cmd.no_edge_process {
info!("Using external edge node, skip running of local edge instance...")
} else {
} else if let Some(edge_config) = config.edge {
let data_dir = node_path.clone();
info!(
"Spawning edge process with genesis file: {}, data directory: {}, additional \
edge arguments: {:?}",
genesis.path.display(),
data_dir.display(),
config.edge.as_ref().expect("valid edge configuration").args
edge_config.args
);
processes.push(services::spawn_edge_process(
edge_path.join(BINARY_NAME),
data_dir,
genesis.path.clone(),
config.edge.unwrap().args,
edge_config.args,
));
} else {
error!("Missing edge configuration, could not run edge node!");
std::process::exit(1);
}

// Sequencer
Expand Down

0 comments on commit 5dfa68d

Please sign in to comment.