mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 01:03:40 +00:00
Altair consensus changes and refactors (#2279)
## Proposed Changes Implement the consensus changes necessary for the upcoming Altair hard fork. ## Additional Info This is quite a heavy refactor, with pivotal types like the `BeaconState` and `BeaconBlock` changing from structs to enums. This ripples through the whole codebase with field accesses changing to methods, e.g. `state.slot` => `state.slot()`. Co-authored-by: realbigsean <seananderson33@gmail.com>
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
use types::EthSpec;
|
||||
|
||||
pub use case_result::CaseResult;
|
||||
pub use cases::Case;
|
||||
pub use cases::{
|
||||
FinalUpdates, JustificationAndFinalization, RegistryUpdates, RewardsAndPenalties, Slashings,
|
||||
EffectiveBalanceUpdates, Eth1DataReset, HistoricalRootsUpdate, InactivityUpdates,
|
||||
JustificationAndFinalization, ParticipationFlagUpdates, ParticipationRecordUpdates,
|
||||
RandaoMixesReset, RegistryUpdates, RewardsAndPenalties, Slashings, SlashingsReset,
|
||||
SyncCommitteeUpdates,
|
||||
};
|
||||
pub use decode::log_file_access;
|
||||
pub use error::Error;
|
||||
pub use handler::*;
|
||||
pub use type_name::TypeName;
|
||||
use types::{ChainSpec, EthSpec, ForkName};
|
||||
|
||||
mod bls_setting;
|
||||
mod case_result;
|
||||
@@ -17,3 +20,7 @@ mod error;
|
||||
mod handler;
|
||||
mod results;
|
||||
mod type_name;
|
||||
|
||||
pub fn testing_spec<E: EthSpec>(fork_name: ForkName) -> ChainSpec {
|
||||
fork_name.make_genesis_spec(E::default_spec())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user