@@ -583,6 +583,7 @@ impl<'a, T: BeaconChainTypes> IndexedAggregatedAttestation<'a, T> {
583
583
} ) ?;
584
584
585
585
if let Some ( committee) = committee {
586
+ // TODO(electra):
586
587
// Note: this clones the signature which is known to be a relatively slow operation.
587
588
//
588
589
// Future optimizations should remove this clone.
@@ -622,7 +623,7 @@ impl<'a, T: BeaconChainTypes> IndexedAggregatedAttestation<'a, T> {
622
623
623
624
let indexed_attestation = match map_attestation_committees (
624
625
chain,
625
- & attestation,
626
+ attestation,
626
627
get_indexed_attestation_with_committee,
627
628
) {
628
629
Ok ( indexed_attestation) => indexed_attestation,
@@ -1330,7 +1331,7 @@ pub fn obtain_indexed_attestation_and_committees_per_slot<T: BeaconChainTypes>(
1330
1331
chain : & BeaconChain < T > ,
1331
1332
attestation : AttestationRef < T :: EthSpec > ,
1332
1333
) -> Result < ( IndexedAttestation < T :: EthSpec > , CommitteesPerSlot ) , Error > {
1333
- map_attestation_committees ( chain, & attestation, |( committees, committees_per_slot) | {
1334
+ map_attestation_committees ( chain, attestation, |( committees, committees_per_slot) | {
1334
1335
match attestation {
1335
1336
AttestationRef :: Base ( att) => {
1336
1337
let committee = committees
@@ -1384,7 +1385,7 @@ pub fn obtain_indexed_attestation_and_committees_per_slot<T: BeaconChainTypes>(
1384
1385
/// from disk and then update the `shuffling_cache`.
1385
1386
fn map_attestation_committees < T , F , R > (
1386
1387
chain : & BeaconChain < T > ,
1387
- attestation : & AttestationRef < T :: EthSpec > ,
1388
+ attestation : AttestationRef < T :: EthSpec > ,
1388
1389
map_fn : F ,
1389
1390
) -> Result < R , Error >
1390
1391
where
0 commit comments