mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
Removes network parameters from chain spec
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user