mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 05:48:31 +00:00
Disable use of system time in tests
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
use beacon_chain::{
|
||||
attestation_verification::Error as AttnError,
|
||||
test_utils::{
|
||||
AttestationStrategy, BeaconChainHarness, BlockStrategy,
|
||||
EphemeralTestingSlotClockHarnessType, OP_POOL_DB_KEY,
|
||||
AttestationStrategy, BeaconChainHarness, BlockStrategy, EphemeralHarnessType,
|
||||
OP_POOL_DB_KEY,
|
||||
},
|
||||
BeaconChain, NotifyExecutionLayer, StateSkipConfig, WhenSlotSkipped,
|
||||
};
|
||||
@@ -26,9 +26,7 @@ lazy_static! {
|
||||
static ref KEYPAIRS: Vec<Keypair> = types::test_utils::generate_deterministic_keypairs(VALIDATOR_COUNT);
|
||||
}
|
||||
|
||||
fn get_harness(
|
||||
validator_count: usize,
|
||||
) -> BeaconChainHarness<EphemeralTestingSlotClockHarnessType<MinimalEthSpec>> {
|
||||
fn get_harness(validator_count: usize) -> BeaconChainHarness<EphemeralHarnessType<MinimalEthSpec>> {
|
||||
let harness = BeaconChainHarness::builder(MinimalEthSpec)
|
||||
.default_spec()
|
||||
.keypairs(KEYPAIRS[0..validator_count].to_vec())
|
||||
@@ -145,7 +143,7 @@ async fn iterators() {
|
||||
}
|
||||
|
||||
fn find_reorg_slot(
|
||||
chain: &BeaconChain<EphemeralTestingSlotClockHarnessType<MinimalEthSpec>>,
|
||||
chain: &BeaconChain<EphemeralHarnessType<MinimalEthSpec>>,
|
||||
new_state: &BeaconState<MinimalEthSpec>,
|
||||
new_block_root: Hash256,
|
||||
) -> Slot {
|
||||
|
||||
Reference in New Issue
Block a user