Function wait_for_second_vid_share

Source
pub async fn wait_for_second_vid_share<TYPES: NodeType>(
    target_epoch: Option<TYPES::Epoch>,
    vid_share: &Proposal<TYPES, VidDisperseShare<TYPES>>,
    da_cert: &DaCertificate2<TYPES>,
    consensus: &OuterConsensus<TYPES>,
    receiver: &Receiver<Arc<HotShotEvent<TYPES>>>,
    cancel_receiver: Receiver<()>,
    id: u64,
) -> Result<Proposal<TYPES, VidDisperseShare<TYPES>>>
Expand description

Gets the second VID share, the current or the next epoch accordingly, from the shared consensus state; makes sure it corresponds to the given DA certificate; if it’s not yet available, waits for it with the given timeout.