diff --git a/rusk/src/bin/args.rs b/rusk/src/bin/args.rs index 024aeef32b..acd71c43d7 100644 --- a/rusk/src/bin/args.rs +++ b/rusk/src/bin/args.rs @@ -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, + + #[clap(short = 'n', long = "network-id")] + /// Kadcast network id + pub kadcast_network_id: Option, } diff --git a/rusk/src/bin/config/kadcast.rs b/rusk/src/bin/config/kadcast.rs index dd20df227b..a95a58ee35 100644 --- a/rusk/src/bin/config/kadcast.rs +++ b/rusk/src/bin/config/kadcast.rs @@ -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) + }; } }