diff --git a/node/Cargo.toml b/node/Cargo.toml index b1e228e968..75875640f9 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -12,7 +12,7 @@ license = "MPL-2.0" tracing = "0.1" hex = "0.4" dusk-consensus = { version = "0.1.1-rc.3", path = "../consensus" } -kadcast = "0.5.0-rc" +kadcast = "0.6.0-rc" sha3 = { version = "0.10" } anyhow = "1.0" async-trait = "0.1" diff --git a/rusk/Cargo.toml b/rusk/Cargo.toml index 8c89f3bc07..405d73639c 100644 --- a/rusk/Cargo.toml +++ b/rusk/Cargo.toml @@ -49,7 +49,7 @@ dusk-pki = "0.12" dusk-bytes = "0.1" dusk-wallet-core = "0.20.0-piecrust.0.6" phoenix-core = "0.20.0-rc.0" -kadcast = "0.5.0-rc" +kadcast = "0.6.0-rc" tungstenite = "0.20" hyper-tungstenite = "0.11" hyper = { version = "0.14", features = ["server", "stream", "http1", "http2"] } 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) + }; } }