pub fn apply_attestation_to_fork_choice(
        &self,
        verified: &impl SignatureVerifiedAttestation<T>,
    ) -> Result<(), Error> {
        let _timer = metrics::start_timer(&metrics::FORK_CHOICE_PROCESS_ATTESTATION_TIMES);

        self.fork_choice
            .write()
            .on_attestation(self.slot()?, verified.indexed_attestation())
            .map_err(Into::into)
    }
/// Accepts some attestation-type object and attempts to verify it in the context of fork
/// choice. If it is valid it is applied to `self.fork_choice`.
///
/// Common items that implement `SignatureVerifiedAttestation`:
///
/// - `VerifiedUnaggregatedAttestation`
/// - `VerifiedAggregatedAttestation`
Accepts some attestation-type object and attempts to verify it in the context of fork
choice. If it is valid it is applied to `self.fork_choice`.

Common items that implement `SignatureVerifiedAttestation`.


Accepts some attestation - type object and attempts to verify it in the context of fork choice . If it is valid it is applied to ` self . fork_choice ` . Common items that implement ` SignatureVerifiedAttestation ` .
pub fn apply_attestation_to_fork_choice(
        &self,
        verified: &impl SignatureVerifiedAttestation<T>,
    ) -> Result<(), Error> {
        let _timer = metrics::start_timer(&metrics::FORK_CHOICE_PROCESS_ATTESTATION_TIMES);
        self.fork_choice
            .write()
            .on_attestation(self.slot()?, verified.indexed_attestation())
            .map_err(Into::into)
    }
pub fn apply_attestation_to_fork_choice ( & self , verified : & impl SignatureVerifiedAttestation < T > , ) -> Result < ( ) , Error > { let _timer = metrics :: start_timer ( & metrics :: FORK_CHOICE_PROCESS_ATTESTATION_TIMES ) ; self . fork_choice . write ( ) . on_attestation ( self . slot ( ) ? , verified . indexed_attestation ( ) ) . map_err ( Into :: into ) }
Accepts some attestation-type object and attempts to verify it in the context of fork
choice.
Accepts some attestation - type object and attempts to verify it in the context of fork choice .
&self
verified
&impl SignatureVerifiedAttestation<T>