mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-02 04:03:35 +00:00
Electra attestation changes from Lions review (#5971)
* dedup/cleanup and remove unneeded hashset use * remove irrelevant TODOs
This commit is contained in:
@@ -1397,8 +1397,7 @@ pub fn obtain_indexed_attestation_and_committees_per_slot<T: BeaconChainTypes>(
|
||||
attesting_indices_electra::get_indexed_attestation(&committees, att)
|
||||
.map(|attestation| (attestation, committees_per_slot))
|
||||
.map_err(|e| {
|
||||
let index = att.committee_index().unwrap_or(0);
|
||||
if e == BlockOperationError::BeaconStateError(NoCommitteeFound(index)) {
|
||||
if let BlockOperationError::BeaconStateError(NoCommitteeFound(index)) = e {
|
||||
Error::NoCommitteeForSlotAndIndex {
|
||||
slot: att.data.slot,
|
||||
index,
|
||||
|
||||
Reference in New Issue
Block a user