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
ConsensusMetricsthat we’re interested in from the consensus interfaces - A thin wrapper around
RwLockReadGuardforConsensusthat leaves debug traces when the lock is freed - A thin wrapper around
RwLockUpgradableReadGuardforConsensusthat leaves debug traces when the lock is freed or upgraded - A thin wrapper around
RwLockWriteGuardforConsensusthat leaves debug traces when the lock is freed - A bundle of views that we have most recently performed some action
- A thin wrapper around
LockedConsensusStatethat 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>>>>