mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Fix failing tests (#4423)
* Get tests passing * Get benchmarks compiling * Fix EF withdrawals test * Remove unused deps * Fix tree_hash panic in tests * Fix slasher compilation * Fix ssz_generic test * Get more tests passing * Fix EF tests for real * Fix local testnet scripts
This commit is contained in:
@@ -336,11 +336,14 @@ where
|
||||
pub slashings: FixedVector<u64, T::EpochsPerSlashingsVector>,
|
||||
|
||||
// Attestations (genesis fork only)
|
||||
// FIXME(sproul): excluded from tree lists due to ResetListDiff
|
||||
#[superstruct(only(Base))]
|
||||
#[test_random(default)]
|
||||
#[metastruct(exclude_from(tree_lists))]
|
||||
pub previous_epoch_attestations: VList<PendingAttestation<T>, T::MaxPendingAttestations>,
|
||||
#[superstruct(only(Base))]
|
||||
#[test_random(default)]
|
||||
#[metastruct(exclude_from(tree_lists))]
|
||||
pub current_epoch_attestations: VList<PendingAttestation<T>, T::MaxPendingAttestations>,
|
||||
|
||||
// Participation (Altair and later)
|
||||
@@ -1899,6 +1902,8 @@ impl<T: EthSpec, GenericValidator: ValidatorTrait> BeaconState<T, GenericValidat
|
||||
pub fn apply_pending_mutations(&mut self) -> Result<(), Error> {
|
||||
match self {
|
||||
Self::Base(inner) => {
|
||||
inner.previous_epoch_attestations.apply_updates()?;
|
||||
inner.current_epoch_attestations.apply_updates()?;
|
||||
map_beacon_state_base_tree_list_fields!(inner, |_, x| { x.apply_updates() })
|
||||
}
|
||||
Self::Altair(inner) => {
|
||||
|
||||
Reference in New Issue
Block a user