@@ -448,7 +448,7 @@ impl<T: BeaconChainTypes> VerifiedAggregatedAttestation<T> {
448448 //
449449 // Attestations must be for a known block. If the block is unknown, we simply drop the
450450 // attestation and do not delay consideration for later.
451- let head_block = verify_head_block_is_known ( chain, & attestation, None ) ?;
451+ let head_block = verify_head_block_is_known ( chain, attestation, None ) ?;
452452
453453 // Check the attestation target root is consistent with the head root.
454454 //
@@ -457,7 +457,7 @@ impl<T: BeaconChainTypes> VerifiedAggregatedAttestation<T> {
457457 //
458458 // Whilst this attestation *technically* could be used to add value to a block, it is
459459 // invalid in the spirit of the protocol. Here we choose safety over profit.
460- verify_attestation_target_root :: < T :: EthSpec > ( & head_block, & attestation) ?;
460+ verify_attestation_target_root :: < T :: EthSpec > ( & head_block, attestation) ?;
461461
462462 // Ensure that the attestation has participants.
463463 if attestation. aggregation_bits . is_zero ( ) {
@@ -628,7 +628,7 @@ impl<T: BeaconChainTypes> VerifiedUnaggregatedAttestation<T> {
628628 // MAXIMUM_GOSSIP_CLOCK_DISPARITY allowance).
629629 //
630630 // We do not queue future attestations for later processing.
631- verify_propagation_slot_range ( chain, & attestation) ?;
631+ verify_propagation_slot_range ( chain, attestation) ?;
632632
633633 // Check to ensure that the attestation is "unaggregated". I.e., it has exactly one
634634 // aggregation bit set.
@@ -642,10 +642,10 @@ impl<T: BeaconChainTypes> VerifiedUnaggregatedAttestation<T> {
642642 //
643643 // Enforce a maximum skip distance for unaggregated attestations.
644644 let head_block =
645- verify_head_block_is_known ( chain, & attestation, chain. config . import_max_skip_slots ) ?;
645+ verify_head_block_is_known ( chain, attestation, chain. config . import_max_skip_slots ) ?;
646646
647647 // Check the attestation target root is consistent with the head root.
648- verify_attestation_target_root :: < T :: EthSpec > ( & head_block, & attestation) ?;
648+ verify_attestation_target_root :: < T :: EthSpec > ( & head_block, attestation) ?;
649649
650650 Ok ( ( ) )
651651 }
@@ -927,7 +927,7 @@ pub fn verify_attestation_signature<T: BeaconChainTypes>(
927927 let signature_set = indexed_attestation_signature_set_from_pubkeys (
928928 |validator_index| pubkey_cache. get ( validator_index) . map ( Cow :: Borrowed ) ,
929929 & indexed_attestation. signature ,
930- & indexed_attestation,
930+ indexed_attestation,
931931 & fork,
932932 chain. genesis_validators_root ,
933933 & chain. spec ,
@@ -1031,15 +1031,15 @@ pub fn verify_signed_aggregate_signatures<T: BeaconChainTypes>(
10311031 let signature_sets = vec ! [
10321032 signed_aggregate_selection_proof_signature_set(
10331033 |validator_index| pubkey_cache. get( validator_index) . map( Cow :: Borrowed ) ,
1034- & signed_aggregate,
1034+ signed_aggregate,
10351035 & fork,
10361036 chain. genesis_validators_root,
10371037 & chain. spec,
10381038 )
10391039 . map_err( BeaconChainError :: SignatureSetError ) ?,
10401040 signed_aggregate_signature_set(
10411041 |validator_index| pubkey_cache. get( validator_index) . map( Cow :: Borrowed ) ,
1042- & signed_aggregate,
1042+ signed_aggregate,
10431043 & fork,
10441044 chain. genesis_validators_root,
10451045 & chain. spec,
@@ -1048,7 +1048,7 @@ pub fn verify_signed_aggregate_signatures<T: BeaconChainTypes>(
10481048 indexed_attestation_signature_set_from_pubkeys(
10491049 |validator_index| pubkey_cache. get( validator_index) . map( Cow :: Borrowed ) ,
10501050 & indexed_attestation. signature,
1051- & indexed_attestation,
1051+ indexed_attestation,
10521052 & fork,
10531053 chain. genesis_validators_root,
10541054 & chain. spec,
@@ -1069,7 +1069,7 @@ fn obtain_indexed_attestation_and_committees_per_slot<T: BeaconChainTypes>(
10691069 attestation : & Attestation < T :: EthSpec > ,
10701070) -> Result < ( IndexedAttestation < T :: EthSpec > , CommitteesPerSlot ) , Error > {
10711071 map_attestation_committee ( chain, attestation, |( committee, committees_per_slot) | {
1072- get_indexed_attestation ( committee. committee , & attestation)
1072+ get_indexed_attestation ( committee. committee , attestation)
10731073 . map ( |attestation| ( attestation, committees_per_slot) )
10741074 . map_err ( Error :: Invalid )
10751075 } )
0 commit comments