mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Update to consensus-spec-tests v1.1.3 (#2722)
## Issue Addressed NA ## Proposed Changes Updates to `testing/ef_tests` to use https://github.com/ethereum/consensus-spec-tests/releases/tag/v1.1.3. Also updates `initialize_beacon_state_from_eth1` to set the `state.fork.previous_version` to the Altair fork version when starting a new Altair chain from genesis. This will not have an effect on mainnet or any long-lived testnets. This was introduced in https://github.com/ethereum/consensus-specs/releases/tag/v1.1.1. ## Additional Info NA
This commit is contained in:
@@ -48,6 +48,8 @@ pub fn initialize_beacon_state_from_eth1<T: EthSpec>(
|
||||
// https://github.com/ethereum/eth2.0-specs/pull/2323
|
||||
if spec.fork_name_at_epoch(state.current_epoch()) == ForkName::Altair {
|
||||
upgrade_to_altair(&mut state, spec)?;
|
||||
|
||||
state.fork_mut().previous_version = spec.altair_fork_version;
|
||||
}
|
||||
|
||||
// Now that we have our validators, initialize the caches (including the committees)
|
||||
|
||||
Reference in New Issue
Block a user