mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Add Altair tests to op pool (#2723)
## Issue Addressed NA ## Proposed Changes Adds some more testing for Altair to the op pool. Credits to @michaelsproul for some appropriated efforts here. ## Additional Info NA Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -26,6 +26,7 @@ use slot_clock::TestingSlotClock;
|
||||
use state_processing::state_advance::complete_state_advance;
|
||||
use std::borrow::Cow;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::str::FromStr;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use store::{config::StoreConfig, BlockReplay, HotColdDB, ItemStore, LevelDB, MemoryStore};
|
||||
@@ -126,11 +127,8 @@ pub fn test_spec<E: EthSpec>() -> ChainSpec {
|
||||
FORK_NAME_ENV_VAR, e
|
||||
)
|
||||
});
|
||||
let fork = match fork_name.as_str() {
|
||||
"base" => ForkName::Base,
|
||||
"altair" => ForkName::Altair,
|
||||
other => panic!("unknown FORK_NAME: {}", other),
|
||||
};
|
||||
let fork = ForkName::from_str(fork_name.as_str())
|
||||
.unwrap_or_else(|()| panic!("unknown FORK_NAME: {}", fork_name));
|
||||
fork.make_genesis_spec(E::default_spec())
|
||||
} else {
|
||||
E::default_spec()
|
||||
|
||||
Reference in New Issue
Block a user