@@ -560,6 +560,7 @@ impl<'a, T: BeaconChainTypes> IndexedAggregatedAttestation<'a, T> {
560
560
} ) ?;
561
561
562
562
if let Some ( committee) = committee {
563
+ // TODO(electra):
563
564
// Note: this clones the signature which is known to be a relatively slow operation.
564
565
//
565
566
// Future optimizations should remove this clone.
@@ -599,7 +600,7 @@ impl<'a, T: BeaconChainTypes> IndexedAggregatedAttestation<'a, T> {
599
600
600
601
let indexed_attestation = match map_attestation_committees (
601
602
chain,
602
- & attestation,
603
+ attestation,
603
604
get_indexed_attestation_with_committee,
604
605
) {
605
606
Ok ( indexed_attestation) => indexed_attestation,
@@ -1281,7 +1282,7 @@ pub fn obtain_indexed_attestation_and_committees_per_slot<T: BeaconChainTypes>(
1281
1282
chain : & BeaconChain < T > ,
1282
1283
attestation : AttestationRef < T :: EthSpec > ,
1283
1284
) -> Result < ( IndexedAttestation < T :: EthSpec > , CommitteesPerSlot ) , Error > {
1284
- map_attestation_committees ( chain, & attestation, |( committees, committees_per_slot) | {
1285
+ map_attestation_committees ( chain, attestation, |( committees, committees_per_slot) | {
1285
1286
match attestation {
1286
1287
AttestationRef :: Base ( att) => {
1287
1288
let committee = committees
@@ -1335,7 +1336,7 @@ pub fn obtain_indexed_attestation_and_committees_per_slot<T: BeaconChainTypes>(
1335
1336
/// from disk and then update the `shuffling_cache`.
1336
1337
fn map_attestation_committees < T , F , R > (
1337
1338
chain : & BeaconChain < T > ,
1338
- attestation : & AttestationRef < T :: EthSpec > ,
1339
+ attestation : AttestationRef < T :: EthSpec > ,
1339
1340
map_fn : F ,
1340
1341
) -> Result < R , Error >
1341
1342
where
0 commit comments