Module hotshot_types::consensus

source ·
Expand description

Provides the core consensus types

Re-exports§

Structs§

  • Alias for the block payload commitment and the associated metadata. The primary data needed in order to submit a proposal.
  • A reference to the consensus algorithm
  • Contains several ConsensusMetrics that we’re interested in from the consensus interfaces
  • A thin wrapper around RwLockReadGuard for Consensus that leaves debug traces when the lock is freed
  • A thin wrapper around RwLockUpgradableReadGuard for Consensus that leaves debug traces when the lock is freed or upgraded
  • A thin wrapper around RwLockWriteGuard for Consensus that leaves debug traces when the lock is freed
  • A bundle of views that we have most recently performed some action
  • A thin wrapper around LockedConsensusState that helps debugging locks

Type Aliases§

  • A type alias for HashMap<Commitment<T>, T>
  • Type alias for consensus state wrapped in a lock.
  • A type alias for BTreeMap<T::Time, HashMap<T::SignatureKey, Proposal<T, VidDisperseShare<T>>>>