Organize beacon_chain typing

- Implements ClientTypes
- New network BeaconChain type for the networking service
This commit is contained in:
Age Manning
2019-03-18 17:38:23 +11:00
parent bbad4bfa19
commit 6b5debe654
8 changed files with 93 additions and 45 deletions

View File

@@ -106,7 +106,7 @@ pub fn initialise_test_beacon_chain(
deposit_root: Hash256::zero(),
block_hash: Hash256::zero(),
};
let keypairs: Vec<Keypair> = (0..10)
let keypairs: Vec<Keypair> = (0..50)
.collect::<Vec<usize>>()
.iter()
.map(|_| Keypair::random())

View File

@@ -7,4 +7,7 @@ pub mod initialise;
pub use self::beacon_chain::{BeaconChain, BlockProcessingOutcome, InvalidBlock, ValidBlock};
pub use self::checkpoint::CheckPoint;
pub use self::errors::BeaconChainError;
pub use fork_choice::{ForkChoice, ForkChoiceAlgorithm, ForkChoiceError};
pub use db;
pub use fork_choice;
pub use parking_lot;
pub use slot_clock;