mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-01 00:41:20 +00:00
Fix bug in per block processing.
This commit is contained in:
parent
6bd2055a0a
commit
3b8c1df5da
@ -142,12 +142,10 @@ fn validate_attestation_signature_optional(
|
||||
);
|
||||
|
||||
// Get the committee for the specific shard that this attestation is for.
|
||||
let relative_epoch = RelativeEpoch::from_slot(state.slot, attestation.data.slot, spec)
|
||||
.map_err(|_| BeaconStateError::EpochOutOfBounds)?; // Should not fail due to previous checks.
|
||||
let crosslink_committee = state
|
||||
.get_crosslink_committees_at_slot(
|
||||
attestation.data.slot,
|
||||
RelativeEpoch::NextWithoutRegistryChange,
|
||||
spec,
|
||||
)?
|
||||
.get_crosslink_committees_at_slot(attestation.data.slot, relative_epoch, spec)?
|
||||
.iter()
|
||||
.find(|c| c.shard == attestation.data.shard)
|
||||
.ok_or_else(|| {
|
||||
|
Loading…
Reference in New Issue
Block a user