lighthouse/testing/ef_tests/src/lib.rs

27 lines
740 B
Rust
Raw Normal View History

2019-05-15 01:41:25 +00:00
pub use case_result::CaseResult;
2019-05-23 06:55:50 +00:00
pub use cases::Case;
2019-08-30 03:29:26 +00:00
pub use cases::{
EffectiveBalanceUpdates, Eth1DataReset, HistoricalRootsUpdate, InactivityUpdates,
JustificationAndFinalization, ParticipationFlagUpdates, ParticipationRecordUpdates,
RandaoMixesReset, RegistryUpdates, RewardsAndPenalties, Slashings, SlashingsReset,
SyncCommitteeUpdates,
2019-08-30 03:29:26 +00:00
};
pub use decode::log_file_access;
2019-05-15 01:41:25 +00:00
pub use error::Error;
2019-08-28 08:46:16 +00:00
pub use handler::*;
Update to Spec v0.10 (#817) * Start updating types * WIP * Signature hacking * Existing EF tests passing with fake_crypto * Updates * Delete outdated API spec * The refactor continues * It compiles * WIP test fixes * All release tests passing bar genesis state parsing * Update and test YamlConfig * Update to spec v0.10 compatible BLS * Updates to BLS EF tests * Add EF test for AggregateVerify And delete unused hash2curve tests for uncompressed points * Update EF tests to v0.10.1 * Use optional block root correctly in block proc * Use genesis fork in deposit domain. All tests pass * Cargo fmt * Fast aggregate verify test * Update REST API docs * Cargo fmt * Fix unused import * Bump spec tags to v0.10.1 * Add `seconds_per_eth1_block` to chainspec * Update to timestamp based eth1 voting scheme * Return None from `get_votes_to_consider` if block cache is empty * Handle overflows in `is_candidate_block` * Revert to failing tests * Fix eth1 data sets test * Choose default vote according to spec * Fix collect_valid_votes tests * Fix `get_votes_to_consider` to choose all eligible blocks * Uncomment winning_vote tests * Add comments; remove unused code * Reduce seconds_per_eth1_block for simulation * Addressed review comments * Add test for default vote case * Fix logs * Remove unused functions * Meter default eth1 votes * Fix comments * Address review comments; remove unused dependency * Disable/delete two outdated tests * Bump eth1 default vote warn to error * Delete outdated eth1 test Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
2020-02-10 23:19:36 +00:00
pub use type_name::TypeName;
use types::{ChainSpec, EthSpec, ForkName};
2019-05-13 23:36:25 +00:00
mod bls_setting;
2019-05-15 01:15:34 +00:00
mod case_result;
2019-05-15 01:17:32 +00:00
mod cases;
2019-09-04 03:03:44 +00:00
mod decode;
2019-05-13 12:10:23 +00:00
mod error;
2019-08-28 08:46:16 +00:00
mod handler;
2019-08-29 07:41:20 +00:00
mod results;
2019-08-28 08:46:16 +00:00
mod type_name;
pub fn testing_spec<E: EthSpec>(fork_name: ForkName) -> ChainSpec {
fork_name.make_genesis_spec(E::default_spec())
}