Skip to content

Commit

Permalink
rusk: add network_id config
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Oct 17, 2023
1 parent 33b175c commit a183013
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rusk/src/bin/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,8 @@ pub struct Args {
/// If this is not specified, the public address is used for binding
/// incoming connection
pub kadcast_listen_address: Option<String>,

#[clap(short = 'n', long = "network-id")]
/// Kadcast network id
pub kadcast_network_id: Option<u8>,
}
3 changes: 3 additions & 0 deletions rusk/src/bin/config/kadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ impl KadcastConfig {
if let Some(bootstrapping_nodes) = arg.kadcast_bootstrap.clone() {
self.0.bootstrapping_nodes = bootstrapping_nodes
};
if let Some(network_id) = arg.kadcast_network_id {
self.0.kadcast_id = Some(network_id)
};
}
}

0 comments on commit a183013

Please sign in to comment.