Merge spec into types crate.

Also remove some pre-2018 `extern crate` calls.
This commit is contained in:
Paul Hauner
2019-02-01 19:05:39 +11:00
parent c1c5311ea0
commit aad3b3dc7a
21 changed files with 13 additions and 49 deletions

View File

@@ -7,9 +7,8 @@ mod traits;
use self::traits::{BeaconNode, BeaconNodeError};
use super::EpochDutiesMap;
use slot_clock::SlotClock;
use spec::ChainSpec;
use std::sync::{Arc, RwLock};
use types::BeaconBlock;
use types::{BeaconBlock, ChainSpec};
pub use self::service::BlockProducerService;

View File

@@ -7,9 +7,9 @@ mod traits;
use self::traits::{BeaconNode, BeaconNodeError};
use bls::PublicKey;
use slot_clock::SlotClock;
use spec::ChainSpec;
use std::collections::HashMap;
use std::sync::{Arc, RwLock};
use types::ChainSpec;
pub use self::service::DutiesManagerService;

View File

@@ -7,10 +7,10 @@ use grpcio::{ChannelBuilder, EnvBuilder};
use protos::services_grpc::{BeaconBlockServiceClient, ValidatorServiceClient};
use slog::{error, info, o, Drain};
use slot_clock::SystemTimeSlotClock;
use spec::ChainSpec;
use std::path::PathBuf;
use std::sync::{Arc, RwLock};
use std::thread;
use types::ChainSpec;
mod block_producer;
mod config;