Skip to content

Commit

Permalink
change network id
Browse files Browse the repository at this point in the history
  • Loading branch information
o-santi authored and dan-da committed Dec 3, 2022
1 parent 7ff77af commit 0b44aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kindelia/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dir = "~/.kindelia/state"
[node.network]
network_id = "0xCAFE0006"

[node.networks.0xCAFE0006]
[node.network.0xCAFE0006]
initial_peers = [
"64.227.110.69",
"188.166.3.140",
Expand Down
4 changes: 2 additions & 2 deletions kindelia/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pub fn run_cli() -> anyhow::Result<()> {

let network_id = resolve_cfg!(
env = "KINDELIA_NETWORK_ID",
prop = "node.network.network_id",
prop = "node.network.network_id".to_string(),
no_default = anyhow!("Missing `network_id` parameter."),
cli_val = network_id,
cfg = config,
Expand All @@ -262,7 +262,7 @@ pub fn run_cli() -> anyhow::Result<()> {

let initial_peers = resolve_cfg!(
env = "KINDELIA_NODE_INITIAL_PEERS",
prop = format!("node.networks.{:#02X}.initial_peers", network_id),
prop = format!("node.network.{:#02X}.initial_peers", network_id),
default = vec![],
cli_val = initial_peers,
cfg = config,
Expand Down

0 comments on commit 0b44aee

Please sign in to comment.