Skip to main content

Context

Type Alias Context 

Source
pub type Context = Context<Digest, PublicKey>;

Aliased Type§

pub struct Context {
    pub round: Round,
    pub leader: PublicKey,
    pub parent: (View, Digest),
}

Fields§

§round: Round

Current round of consensus.

§leader: PublicKey

Leader of the current round.

§parent: (View, Digest)

Parent the payload is built on.

If there is a gap between the current view and the parent view, the participant must possess a nullification for each discarded view to safely vote on the proposed payload (any view without a nullification may eventually be finalized and skipping it would result in a fork).