From 4ef66a544abc108a487cc18eeb55d1d16195576f Mon Sep 17 00:00:00 2001 From: pscott <30843220+pscott@users.noreply.github.com> Date: Tue, 5 Nov 2019 04:43:08 +0100 Subject: [PATCH] Move EthSpec (#591) * Allow slot clock to work on genesis * Loose over-strict requirements for slot clock tests * move and rename beacon_state_types to eth_spec.rs --- eth2/types/src/beacon_state.rs | 3 +-- .../src/{beacon_state/beacon_state_types.rs => eth_spec.rs} | 0 eth2/types/src/lib.rs | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) rename eth2/types/src/{beacon_state/beacon_state_types.rs => eth_spec.rs} (100%) diff --git a/eth2/types/src/beacon_state.rs b/eth2/types/src/beacon_state.rs index 6b2b44d0ee..f64deb38a2 100644 --- a/eth2/types/src/beacon_state.rs +++ b/eth2/types/src/beacon_state.rs @@ -15,10 +15,9 @@ use tree_hash::TreeHash; use tree_hash_derive::TreeHash; pub use self::committee_cache::CommitteeCache; -pub use beacon_state_types::*; +pub use eth_spec::*; #[macro_use] -mod beacon_state_types; mod committee_cache; mod exit_cache; mod pubkey_cache; diff --git a/eth2/types/src/beacon_state/beacon_state_types.rs b/eth2/types/src/eth_spec.rs similarity index 100% rename from eth2/types/src/beacon_state/beacon_state_types.rs rename to eth2/types/src/eth_spec.rs diff --git a/eth2/types/src/lib.rs b/eth2/types/src/lib.rs index d1eaa393f8..8f9c07b0db 100644 --- a/eth2/types/src/lib.rs +++ b/eth2/types/src/lib.rs @@ -23,6 +23,7 @@ pub mod crosslink_committee; pub mod deposit; pub mod deposit_data; pub mod eth1_data; +pub mod eth_spec; pub mod fork; pub mod free_attestation; pub mod historical_batch;