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

@@ -1,8 +1,3 @@
extern crate honey_badger_split;
extern crate spec;
extern crate types;
extern crate vec_shuffle;
mod shuffle;
pub use crate::shuffle::{shard_and_committees_for_cycle, ValidatorAssignmentError};

View File

@@ -1,8 +1,7 @@
use std::cmp::min;
use honey_badger_split::SplitExt;
use spec::ChainSpec;
use types::validator_registry::get_active_validator_indices;
use types::{validator_registry::get_active_validator_indices, ChainSpec};
use types::{ShardCommittee, Validator};
use vec_shuffle::{shuffle, ShuffleErr};