mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Fix failing tests
This commit is contained in:
@@ -240,11 +240,7 @@ where
|
||||
ensure!(
|
||||
attestation.data.justified_block_root
|
||||
== *state
|
||||
.get_block_root(
|
||||
&state,
|
||||
attestation.data.justified_slot,
|
||||
self.spec.latest_block_roots_length
|
||||
)
|
||||
.get_block_root(attestation.data.justified_slot, &self.spec)
|
||||
.ok_or(Error::NoBlockRoot)?,
|
||||
Error::BadAttestation
|
||||
);
|
||||
@@ -364,6 +360,10 @@ where
|
||||
Error::BadCustodyResponses
|
||||
);
|
||||
|
||||
if state.slot % self.spec.epoch_length == 0 {
|
||||
state.per_epoch_processing(&self.spec);
|
||||
}
|
||||
|
||||
Ok(state)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user