Update beacon_node to work w/ BeaconStateTypes

This commit is contained in:
Paul Hauner
2019-05-09 09:40:32 +10:00
parent 42b7aa89d4
commit 4c0c93f0c9
5 changed files with 34 additions and 11 deletions

View File

@@ -9,8 +9,8 @@ use std::net::{IpAddr, Ipv4Addr};
use std::path::PathBuf;
use types::multiaddr::Protocol;
use types::multiaddr::ToMultiaddr;
use types::ChainSpec;
use types::Multiaddr;
use types::{BeaconStateTypes, ChainSpec, LighthouseTestnetStateTypes};
/// Stores the client configuration for this Lighthouse instance.
#[derive(Debug, Clone)]
@@ -35,7 +35,7 @@ impl Default for ClientConfig {
fs::create_dir_all(&data_dir)
.unwrap_or_else(|_| panic!("Unable to create {:?}", &data_dir));
let default_spec = ChainSpec::lighthouse_testnet();
let default_spec = LighthouseTestnetStateTypes::spec();
let default_net_conf = NetworkConfig::new(default_spec.boot_nodes.clone());
Self {