Type Alias Consensus

Source
pub type Consensus<N, P, V> = SystemContextHandle<SeqTypes, Node<N, P>, V>;
Expand description

The consensus handle

Aliased Type§

pub struct Consensus<N, P, V> {
    pub hotshot: Arc<SystemContext<SeqTypes, Node<N, P>, V>>,
    pub network: Arc<<Node<N, P> as NodeImplementation<SeqTypes>>::Network>,
    pub membership_coordinator: EpochMembershipCoordinator<SeqTypes>,
    pub epoch_height: u64,
    /* private fields */
}

Fields§

§hotshot: Arc<SystemContext<SeqTypes, Node<N, P>, V>>

Internal reference to the underlying [SystemContext]

§network: Arc<<Node<N, P> as NodeImplementation<SeqTypes>>::Network>

Networks used by the instance of hotshot

§membership_coordinator: EpochMembershipCoordinator<SeqTypes>

Memberships used by consensus

§epoch_height: u64

Number of blocks in an epoch, zero means there are no epochs