fn verify_qc(&self, qc: &QuorumCert) -> Result<(), Error> {
        let validator_verifier = self.verifier()?;

        qc.verify(validator_verifier)
            .map_err(|e| Error::InvalidQuorumCertificate(e.to_string()))?;

        if qc.parent_block().round() < self.persistent_storage.preferred_round()? {
            Err(Error::InvalidQuorumCertificate(
                "Preferred round too early".into(),
            ))
        } else {
            Ok(())
        }
    }
/// This verifies a QC makes sense in the current context, specifically that this is for the
/// current epoch and extends from the preffered round.
This verifies a QC makes sense in the current context, specifically that this is for the
current epoch and extends from the preffered round.
This verifies a QC makes sense in the current context specifically that this is for the current epoch and extends from the preffered round .
fn verify_qc(&self, qc: &QuorumCert) -> Result<(), Error> {
        let validator_verifier = self.verifier()?;
        qc.verify(validator_verifier)
            .map_err(|e| Error::InvalidQuorumCertificate(e.to_string()))?;
        if qc.parent_block().round() < self.persistent_storage.preferred_round()? {
            Err(Error::InvalidQuorumCertificate(
                "Preferred round too early".into(),
            ))
        } else {
            Ok(())
        }
    }
fn verify_qc ( & self , qc : & QuorumCert ) -> Result < ( ) , Error > { let validator_verifier = self . verifier ( ) ? ; qc . verify ( validator_verifier ) . map_err ( | e | Error :: InvalidQuorumCertificate ( e . to_string ( ) ) ) ? ; if qc . parent_block ( ) . round ( ) < self . persistent_storage . preferred_round ( ) ? { Err ( Error :: InvalidQuorumCertificate ( " " . into ( ) , ) ) } else { Ok ( ( ) ) } }
This verifies a QC makes sense in the current context, specifically that this is for the
current epoch and extends from the preffered round.
This verifies a QC makes sense in the current context specifically that this is for the current epoch and extends from the preffered round .
&self
qc
&QuorumCert
&self
qc
&QuorumCert