Documentation ¶
Index ¶
- Constants
- func NewConsensusService() (*worker, error)
- func NewSubroundBitmap(baseSubround *spos.Subround, extend func(subroundId int)) (*subroundBitmap, error)
- func NewSubroundCommitment(baseSubround *spos.Subround, extend func(subroundId int)) (*subroundCommitment, error)
- func NewSubroundCommitmentHash(baseSubround *spos.Subround, extend func(subroundId int)) (*subroundCommitmentHash, 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 // SrCommitmentHash defines ID of subround "commitment hash" SrCommitmentHash // SrBitmap defines ID of subround "bitmap" SrBitmap // SrCommitment defines ID of subround "commitment" SrCommitment // 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 // MtCommitmentHash defines ID of a message that has a commitment hash inside MtCommitmentHash // MtBitmap defines ID of a message that has a bitmap inside MtBitmap // MtCommitment defines ID of a message that has a commitment inside MtCommitment // MtSignature defines ID of a message that has a Signature inside MtSignature )
Variables ¶
This section is empty.
Functions ¶
func NewConsensusService ¶
func NewConsensusService() (*worker, error)
NewConsensusService creates a new worker object
func NewSubroundBitmap ¶
func NewSubroundBitmap( baseSubround *spos.Subround, extend func(subroundId int), ) (*subroundBitmap, error)
NewSubroundBitmap creates a subroundBitmap object
func NewSubroundCommitment ¶
func NewSubroundCommitment( baseSubround *spos.Subround, extend func(subroundId int), ) (*subroundCommitment, error)
NewSubroundCommitment creates a subroundCommitment object
func NewSubroundCommitmentHash ¶
func NewSubroundCommitmentHash( baseSubround *spos.Subround, extend func(subroundId int), ) (*subroundCommitmentHash, error)
NewSubroundCommitmentHash creates a subroundCommitmentHash 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 factory for BN subrounds
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.