Documentation ¶
Index ¶
- Constants
- func NewConsensusService() (*worker, error)
- func NewSubroundEndRound(baseSubround *spos.Subround, extend func(subroundId int)) (*subroundEndRound, error)
- func NewSubroundSignature(baseSubround *spos.Subround, extend func(subroundId int)) (*subroundSignature, error)
- func NewSubroundsFactory(consensusDataContainer spos.ConsensusCoreHandler, ...) (*factory, error)
Constants ¶
View Source
const ( // SrStartRound defines ID of Subround "Start round" SrStartRound = iota // SrBlock defines ID of Subround "block" SrBlock // SrSignature defines ID of Subround "signature" SrSignature // SrEndRound defines ID of Subround "End round" SrEndRound )
View Source
const ( // MtUnknown defines ID of a message that has unknown Data inside MtUnknown consensus.MessageType = iota // MtBlockBody defines ID of a message that has a block body inside MtBlockBody // MtBlockHeader defines ID of a message that has a block header inside MtBlockHeader // MtSignature defines ID of a message that has a Signature inside MtSignature )
View Source
const ( BlockBodyStringValue = "(BLOCK_BODY)" BlockHeaderStringValue = "(BLOCK_HEADER)" BlockSignatureStringValue = "(SIGNATURE)" BlockUnknownStringValue = "(UNKNOWN)" BlockDefaultStringValue = "Undefined message type" )
Variables ¶
This section is empty.
Functions ¶
func NewConsensusService ¶
func NewConsensusService() (*worker, error)
NewConsensusService creates a new worker object
func NewSubroundEndRound ¶
func NewSubroundEndRound( baseSubround *spos.Subround, extend func(subroundId int), ) (*subroundEndRound, error)
NewSubroundEndRound creates a subroundEndRound object
func NewSubroundSignature ¶
func NewSubroundSignature( baseSubround *spos.Subround, extend func(subroundId int), ) (*subroundSignature, error)
NewSubroundSignature creates a subroundSignature object
func NewSubroundsFactory ¶
func NewSubroundsFactory( consensusDataContainer spos.ConsensusCoreHandler, consensusState *spos.ConsensusState, worker spos.WorkerHandler, ) (*factory, error)
NewSubroundsFactory creates a new consensusState object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.