fn update(&mut self, qc: &QuorumCert) -> Result<(), Error> {
        self.verify_qc(qc)?;
        if qc.ends_epoch() {
            self.start_new_epoch(qc.ledger_info().ledger_info())
        } else {
            self.persistent_storage
                .set_preferred_round(qc.parent_block().round())
                .map_err(|e| e.into())
        }
    }
/// Verify the QC is correct and up to date, if it is either set the preferred round or start a
/// new epoch.
Verify the QC is correct and up to date, if it is either set the preferred round or start a
new epoch.
Verify the QC is correct and up to date if it is either set the preferred round or start a new epoch .
fn update(&mut self, qc: &QuorumCert) -> Result<(), Error> {
        self.verify_qc(qc)?;
        if qc.ends_epoch() {
            self.start_new_epoch(qc.ledger_info().ledger_info())
        } else {
            self.persistent_storage
                .set_preferred_round(qc.parent_block().round())
                .map_err(|e| e.into())
        }
    }
fn update ( & mut self , qc : & QuorumCert ) -> Result < ( ) , Error > { self . verify_qc ( qc ) ? ; if qc . ends_epoch ( ) { self . start_new_epoch ( qc . ledger_info ( ) . ledger_info ( ) ) } else { self . persistent_storage . set_preferred_round ( qc . parent_block ( ) . round ( ) ) . map_err ( | e | e . into ( ) ) } }
Verify the QC is correct and up to date, if it is either set the preferred round or start a
new epoch.
Verify the QC is correct and up to date if it is either set the preferred round or start a new epoch .
&mut self
qc
&QuorumCert
&mut self
qc
&QuorumCert