Skip to content

Commit

Permalink
Fix fork choice tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul authored and dapplion committed Feb 22, 2024
1 parent 11a39bd commit e5341d5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions consensus/fork_choice/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,7 @@ impl fmt::Debug for ForkChoiceTest {
impl ForkChoiceTest {
/// Creates a new tester.
pub fn new() -> Self {
// Run fork choice tests against the latest fork.
let spec = ForkName::latest().make_genesis_spec(ChainSpec::default());
let harness = BeaconChainHarness::builder(MainnetEthSpec)
.spec(spec)
.deterministic_keypairs(VALIDATOR_COUNT)
.fresh_ephemeral_store()
.build();

Self { harness }
Self::new_with_chain_config(ChainConfig::default())
}

/// Creates a new tester with a custom chain config.
Expand All @@ -67,6 +59,7 @@ impl ForkChoiceTest {
.chain_config(chain_config)
.deterministic_keypairs(VALIDATOR_COUNT)
.fresh_ephemeral_store()
.mock_execution_layer()
.build();

Self { harness }
Expand Down

0 comments on commit e5341d5

Please sign in to comment.