Skip to content
Snippets Groups Projects
Unverified Commit bc0ac2fe authored by Nikos Kontakis's avatar Nikos Kontakis
Browse files

minor fix

parent 513246b1
Branches
No related merge requests found
......@@ -190,7 +190,7 @@ where
let mut bootnodes = vec![];
let mut relaynodes = vec![];
network_spec.relaychain.nodes.iter().for_each(|node| {
if node.is_bootnode.is_some() {
if node.is_bootnode {
bootnodes.push(node)
} else {
relaynodes.push(node)
......
......@@ -43,7 +43,7 @@ pub struct NodeSpec {
pub(crate) is_invulnerable: bool,
/// Whether the node is a bootnode.
pub(crate) is_bootnode: Option<bool>,
pub(crate) is_bootnode: bool,
/// Node initial balance present in genesis.
pub(crate) initial_balance: u128,
......@@ -124,7 +124,7 @@ impl NodeSpec {
args,
is_validator: node_config.is_validator(),
is_invulnerable: node_config.is_invulnerable(),
is_bootnode: Some(node_config.is_bootnode()),
is_bootnode: node_config.is_bootnode(),
initial_balance: node_config.initial_balance(),
env: node_config.env().into_iter().cloned().collect(),
bootnodes_addresses: node_config
......@@ -200,7 +200,7 @@ impl NodeSpec {
args,
is_validator: options.is_validator,
is_invulnerable: false,
is_bootnode: Some(false),
is_bootnode: false,
initial_balance: 0,
env: options.env,
bootnodes_addresses: vec![],
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment