mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Improve single-node testnet support and Arc NetworkConfig/ChainSpec (#6396)
* Arc ChainSpec and NetworkConfig * Fix release tests * Fix lint * Merge remote-tracking branch 'origin/unstable' into single-node-testnet
This commit is contained in:
@@ -350,11 +350,12 @@ impl<E: EthSpec> Case for ForkChoiceTest<E> {
|
||||
/// A testing rig used to execute a test case.
|
||||
struct Tester<E: EthSpec> {
|
||||
harness: BeaconChainHarness<EphemeralHarnessType<E>>,
|
||||
spec: ChainSpec,
|
||||
spec: Arc<ChainSpec>,
|
||||
}
|
||||
|
||||
impl<E: EthSpec> Tester<E> {
|
||||
pub fn new(case: &ForkChoiceTest<E>, spec: ChainSpec) -> Result<Self, Error> {
|
||||
let spec = Arc::new(spec);
|
||||
let genesis_time = case.anchor_state.genesis_time();
|
||||
|
||||
if case.anchor_state.slot() != spec.genesis_slot {
|
||||
|
||||
Reference in New Issue
Block a user