From 91ba26a351c623014d2c0c34c493c15b14ffdc5b Mon Sep 17 00:00:00 2001 From: Age Manning Date: Fri, 15 Feb 2019 00:21:26 +1100 Subject: [PATCH] Add test dependencies for fork-choice. --- eth2/fork_choice/Cargo.toml | 4 ++++ eth2/fork_choice/src/lib.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/eth2/fork_choice/Cargo.toml b/eth2/fork_choice/Cargo.toml index 566334c76..82d5785b9 100644 --- a/eth2/fork_choice/Cargo.toml +++ b/eth2/fork_choice/Cargo.toml @@ -10,3 +10,7 @@ ssz = { path = "../utils/ssz" } types = { path = "../types" } fast-math = "0.1.1" byteorder = "1.3.1" + +[dev-dependencies] +yaml-rust = "0.4.2" +bls = { path = "../utils/bls" } diff --git a/eth2/fork_choice/src/lib.rs b/eth2/fork_choice/src/lib.rs index a6e4ea422..e876ed60f 100644 --- a/eth2/fork_choice/src/lib.rs +++ b/eth2/fork_choice/src/lib.rs @@ -51,6 +51,10 @@ use db::stores::BeaconBlockAtSlotError; use db::DBError; use types::{BeaconBlock, Hash256}; +// export the main structs +pub use longest_chain::LongestChain; +pub use optimised_lmd_ghost::OptimisedLMDGhost; + /// Defines the interface for Fork Choices. Each Fork choice will define their own data structures /// which can be built in block processing through the `add_block` and `add_attestation` functions. /// The main fork choice algorithm is specified in `find_head