Add network id to chainspec
This commit is contained in:
parent
6a89da43b7
commit
be712f5b05
@ -118,6 +118,7 @@ pub struct ChainSpec {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
pub boot_nodes: Vec<Multiaddr>,
|
pub boot_nodes: Vec<Multiaddr>,
|
||||||
|
pub network_id: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ChainSpec {
|
impl ChainSpec {
|
||||||
@ -254,6 +255,7 @@ impl ChainSpec {
|
|||||||
* Boot nodes
|
* Boot nodes
|
||||||
*/
|
*/
|
||||||
boot_nodes: vec![],
|
boot_nodes: vec![],
|
||||||
|
network_id: 1, // foundation network id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,6 +272,7 @@ impl ChainSpec {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
boot_nodes,
|
boot_nodes,
|
||||||
|
network_id: 2, // lighthouse testnet network id
|
||||||
..ChainSpec::few_validators()
|
..ChainSpec::few_validators()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user