Skip to content

Commit

Permalink
Allow passing network arg
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Jan 6, 2025
1 parent f75fe92 commit ba17873
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,13 @@ where
let node_config_args = config.get_node_config_args().unwrap_or_default();
let rollup_config_args = config.get_rollup_config_args();

let network_arg = match std::env::var("CITREA_NETWORK") {
Ok(network) => vec!["--network".to_string(), network],
_ => vec!["--dev".to_string()],
};

[
vec!["--dev".to_string()],
network_arg,
vec!["--da-layer".to_string(), config.da_layer().to_string()],
node_config_args,
rollup_config_args,
Expand Down

0 comments on commit ba17873

Please sign in to comment.