pub type Consensus<N, P> = SystemContextHandle<SeqTypes, Node<N, P>>;Expand description
The consensus handle
Aliased Type§
pub struct Consensus<N, P> {
pub hotshot: Arc<SystemContext<SeqTypes, Node<N, P>>>,
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>>>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: u64Number of blocks in an epoch, zero means there are no epochs