Removes network parameters from chain spec

This commit is contained in:
Age Manning
2019-04-03 16:00:09 +11:00
parent a31d6bcb22
commit 64abd0bc5b
9 changed files with 71 additions and 30 deletions

View File

@@ -107,10 +107,7 @@ 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 {
@@ -219,10 +216,7 @@ impl ChainSpec {
/*
* Network specific
*/
boot_nodes: vec![],
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
}
}

View File

@@ -82,6 +82,3 @@ pub type ProposerMap = HashMap<u64, usize>;
pub use bls::{AggregatePublicKey, AggregateSignature, Keypair, PublicKey, SecretKey, Signature};
pub use fixed_len_vec::{typenum, typenum::Unsigned, FixedLenVec};
pub use libp2p::floodsub::{Topic, TopicBuilder, TopicHash};
pub use libp2p::multiaddr;
pub use libp2p::Multiaddr;