Expand description
Provides the core consensus types
Re-exports§
Structs§
- Commitment
AndMetadata - Alias for the block payload commitment and the associated metadata. The primary data needed in order to submit a proposal.
- Consensus
- A reference to the consensus algorithm
- Consensus
Metrics Value - Contains several
ConsensusMetrics
that we’re interested in from the consensus interfaces - Consensus
Read Lock Guard - A thin wrapper around
RwLockReadGuard
forConsensus
that leaves debug traces when the lock is freed - Consensus
Upgradable Read Lock Guard - A thin wrapper around
RwLockUpgradableReadGuard
forConsensus
that leaves debug traces when the lock is freed or upgraded - Consensus
Write Lock Guard - A thin wrapper around
RwLockWriteGuard
forConsensus
that leaves debug traces when the lock is freed - HotShot
Action 🔒Views - A bundle of views that we have most recently performed some action
- Outer
Consensus - A thin wrapper around
LockedConsensusState
that helps debugging locks - Payload
With Metadata - This struct holds a payload and its metadata
Type Aliases§
- Commitment
Map - A type alias for
HashMap<Commitment<T>, T>
- Locked
Consensus State - Type alias for consensus state wrapped in a lock.
- VidShares
- A type alias for
BTreeMap<T::Time, HashMap<T::SignatureKey, BTreeMap<T::Epoch, Proposal<T, VidDisperseShare<T>>>>>