pub(crate) async fn parent_leaf_and_state<TYPES: NodeType, V: Versions>(
    next_proposal_view_number: TYPES::Time,
    event_sender: &Sender<Arc<HotShotEvent<TYPES>>>,
    event_receiver: &Receiver<Arc<HotShotEvent<TYPES>>>,
    quorum_membership: Arc<TYPES::Membership>,
    public_key: TYPES::SignatureKey,
    private_key: <TYPES::SignatureKey as SignatureKey>::PrivateKey,
    consensus: OuterConsensus<TYPES>,
    upgrade_lock: &UpgradeLock<TYPES, V>
) -> Result<(Leaf<TYPES>, Arc<<TYPES as NodeType>::ValidatedState>)>
Expand description

Gets the parent leaf and state from the parent of a proposal, returning an anyhow::Error if not.