Rename network_id to chain_id

This commit is contained in:
Age Manning
2019-03-22 12:39:45 +11:00
parent 0a59a73894
commit 844fdc0fb9
2 changed files with 7 additions and 7 deletions

View File

@@ -118,7 +118,7 @@ pub struct ChainSpec {
*
*/
pub boot_nodes: Vec<Multiaddr>,
pub network_id: u8,
pub chain_id: u8,
}
impl ChainSpec {
@@ -255,7 +255,7 @@ impl ChainSpec {
* Boot nodes
*/
boot_nodes: vec![],
network_id: 1, // foundation network id
chain_id: 1, // foundation chain id
}
}
@@ -272,7 +272,7 @@ impl ChainSpec {
Self {
boot_nodes,
network_id: 2, // lighthouse testnet network id
chain_id: 2, // lighthouse testnet chain id
..ChainSpec::few_validators()
}
}