Function validate_qc_and_next_epoch_qc

Source
pub async fn validate_qc_and_next_epoch_qc<TYPES: NodeType, V: Versions>(
    qc: &QuorumCertificate2<TYPES>,
    maybe_next_epoch_qc: Option<&NextEpochQuorumCertificate2<TYPES>>,
    consensus: &OuterConsensus<TYPES>,
    membership_coordinator: &EpochMembershipCoordinator<TYPES>,
    upgrade_lock: &UpgradeLock<TYPES, V>,
    epoch_height: u64,
) -> Result<()>
Expand description

Validates qc’s signatures and, if provided, validates next_epoch_qc’s signatures and whether it corresponds to the provided high_qc.