Skip to content

Commit

Permalink
Merge pull request #1095 from dusk-network/network-id
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia authored Oct 17, 2023
2 parents 78a474e + a183013 commit c1df7f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion rusk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
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 c1df7f9

Please sign in to comment.