pub fn verify_aggregated_attestation_for_gossip(
        &self,
        signed_aggregate: SignedAggregateAndProof<T::EthSpec>,
    ) -> Result<VerifiedAggregatedAttestation<T>, AttestationError> {
        metrics::inc_counter(&metrics::AGGREGATED_ATTESTATION_PROCESSING_REQUESTS);
        let _timer =
            metrics::start_timer(&metrics::AGGREGATED_ATTESTATION_GOSSIP_VERIFICATION_TIMES);

        VerifiedAggregatedAttestation::verify(signed_aggregate, self).map(|v| {
            // This method is called for API and gossip attestations, so this covers all aggregated attestation events
            if let Some(event_handler) = self.event_handler.as_ref() {
                if event_handler.has_attestation_subscribers() {
                    event_handler.register(EventKind::Attestation(v.attestation().clone()));
                }
            }
            metrics::inc_counter(&metrics::AGGREGATED_ATTESTATION_PROCESSING_SUCCESSES);
            v
        })
    }
/// Accepts some `SignedAggregateAndProof` from the network and attempts to verify it,
/// returning `Ok(_)` if it is valid to be (re)broadcast on the gossip network.
Accepts some `SignedAggregateAndProof` from the network and attempts to verify it,
returning `Ok(_)` if it is valid to be (re)broadcast on the gossip network.
Accepts some ` SignedAggregateAndProof ` from the network and attempts to verify it returning ` Ok ( _ ) ` if it is valid to be ( re ) broadcast on the gossip network .
pub fn verify_aggregated_attestation_for_gossip(
        &self,
        signed_aggregate: SignedAggregateAndProof<T::EthSpec>,
    ) -> Result<VerifiedAggregatedAttestation<T>, AttestationError> {
        metrics::inc_counter(&metrics::AGGREGATED_ATTESTATION_PROCESSING_REQUESTS);
        let _timer =
            metrics::start_timer(&metrics::AGGREGATED_ATTESTATION_GOSSIP_VERIFICATION_TIMES);
        VerifiedAggregatedAttestation::verify(signed_aggregate, self).map(|v| {
            // This method is called for API and gossip attestations, so this covers all aggregated attestation events
            if let Some(event_handler) = self.event_handler.as_ref() {
                if event_handler.has_attestation_subscribers() {
                    event_handler.register(EventKind::Attestation(v.attestation().clone()));
                }
            }
            metrics::inc_counter(&metrics::AGGREGATED_ATTESTATION_PROCESSING_SUCCESSES);
            v
        })
    }
pub fn verify_aggregated_attestation_for_gossip ( & self , signed_aggregate : SignedAggregateAndProof < T :: EthSpec > , ) -> Result < VerifiedAggregatedAttestation < T > , AttestationError > { metrics :: inc_counter ( & metrics :: AGGREGATED_ATTESTATION_PROCESSING_REQUESTS ) ; let _timer = metrics :: start_timer ( & metrics :: AGGREGATED_ATTESTATION_GOSSIP_VERIFICATION_TIMES ) ; VerifiedAggregatedAttestation :: verify ( signed_aggregate , self ) . map ( | v | { // This method is called for API and gossip attestations, so this covers all aggregated attestation events if let Some ( event_handler ) = self . event_handler . as_ref ( ) { if event_handler . has_attestation_subscribers ( ) { event_handler . register ( EventKind :: Attestation ( v . attestation ( ) . clone ( ) ) ) ; } } metrics :: inc_counter ( & metrics :: AGGREGATED_ATTESTATION_PROCESSING_SUCCESSES ) ; v } ) }
Accepts some `SignedAggregateAndProof` from the network and attempts to verify it,
returning `Ok(_)` if it is valid to be (re)broadcast on the gossip network.
Accepts some ` SignedAggregateAndProof ` from the network and attempts to verify it returning ` Ok ( _ ) ` if it is valid to be ( re ) broadcast on the gossip network .
&self
signed_aggregate
SignedAggregateAndProof<T::EthSpec>