Function hotshot_task_impls::helpers::decide_from_proposal_2
source · pub async fn decide_from_proposal_2<TYPES: NodeType>(
proposal: &QuorumProposalWrapper<TYPES>,
consensus: OuterConsensus<TYPES>,
existing_upgrade_cert: Arc<RwLock<Option<UpgradeCertificate<TYPES>>>>,
public_key: &TYPES::SignatureKey,
with_epochs: bool,
membership: &Arc<RwLock<TYPES::Membership>>,
) -> LeafChainTraversalOutcome<TYPES>
Expand description
calculate the new decided leaf chain based on the rules of HotStuff 2
§Panics
If the leaf chain contains no decided leaf while reaching a decided view, which should be impossible.