pub(crate) async fn parent_leaf_and_state<TYPES: NodeType, V: Versions>(
event_sender: &Sender<Arc<HotShotEvent<TYPES>>>,
event_receiver: &Receiver<Arc<HotShotEvent<TYPES>>>,
membership: EpochMembershipCoordinator<TYPES>,
public_key: TYPES::SignatureKey,
private_key: <TYPES::SignatureKey as SignatureKey>::PrivateKey,
consensus: OuterConsensus<TYPES>,
upgrade_lock: &UpgradeLock<TYPES, V>,
parent_qc: &QuorumCertificate2<TYPES>,
epoch_height: u64,
) -> Result<(Leaf2<TYPES>, Arc<<TYPES as NodeType>::ValidatedState>)>
Expand description
Gets the parent leaf and state from the parent of a proposal, returning an [utils::anytrace::Error
] if not.