Function hotshot_task_impls::helpers::decide_from_proposal_2

source ·
pub async fn decide_from_proposal_2<TYPES: NodeType>(
    proposal: &QuorumProposal2<TYPES>,
    consensus: OuterConsensus<TYPES>,
    existing_upgrade_cert: Arc<RwLock<Option<UpgradeCertificate<TYPES>>>>,
    public_key: &TYPES::SignatureKey,
) -> LeafChainTraversalOutcome<TYPES>
Expand description

calculate the new decided leaf chain based on the rules of hostuff 2

§Panics

Can’t actually panic