Crate kaspa_consensusmanager

Source

Structs§

BlockProcessingBatch
ConsensusInstance
ConsensusManager
ConsensusSessionBlocking
ConsensusSessionOwned
An owned consensus session type which can be cloned and shared across threads. See method spawn_blocking within for context on the usefulness of this type. Please note - you must use ConsensusProxy type alias instead of this struct.
SessionLock
SessionReadGuard
SessionWriteGuard
StagingConsensus

Traits§

ConsensusCtl
Consensus controller trait. Includes methods required to start/stop/control consensus, but which should not be exposed to ordinary users
ConsensusFactory
ConsensusResetHandler
Defines a trait which handles consensus resets for external parts of the system. We avoid using the generic notification system since the reset needs to be handled synchronously in order to retain state consistency

Functions§

spawn_blocking
Runs the provided closure on a thread where blocking is acceptable.

Type Aliases§

ConsensusProxy
DynConsensusCtl