Add topics to chain id

This commit is contained in:
Age Manning
2019-04-03 12:25:05 +11:00
parent c7bd02caaf
commit 4e24c8e651
3 changed files with 26 additions and 5 deletions

View File

@@ -106,10 +106,11 @@ pub struct ChainSpec {
/*
* Network specific parameters
*
*/
pub boot_nodes: Vec<Multiaddr>,
pub chain_id: u8,
pub beacon_chain_topic: String,
pub shard_topic_prefix: String,
}
impl ChainSpec {
@@ -216,10 +217,12 @@ impl ChainSpec {
domain_transfer: 5,
/*
* Boot nodes
* Network specific
*/
boot_nodes: vec![],
chain_id: 1, // mainnet chain id
chain_id: 1, // foundation chain id
beacon_chain_topic: String::from("beacon_chain"),
shard_topic_prefix: String::from("attestations"), // simple single attestation topic for now
}
}