Documentation
¶
Index ¶
- Variables
- func NewSubroundBlock(baseSubround *spos.Subround, extend func(subroundId int), ...) (*subroundBlock, error)
- func NewSubroundEndRound(baseSubround *spos.Subround, extend func(subroundId int), ...) (*subroundEndRound, error)
- func NewSubroundSignature(baseSubround *spos.Subround, extend func(subroundId int), ...) (*subroundSignature, error)
- func NewSubroundStartRound(baseSubround *spos.Subround, extend func(subroundId int), ...) (*subroundStartRound, error)
- func NewSubroundsFactory(consensusDataContainer spos.ConsensusCoreHandler, ...) (*factory, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAndromedaFlagEnabledWithConsensusV1 = errors.New("andromeda flag enabled with consensus v1")
ErrAndromedaFlagEnabledWithConsensusV1 defines the error for running andromeda enabled under v1 consensus
View Source
var ErrNilSentSignatureTracker = errors.New("nil sent signature tracker")
ErrNilSentSignatureTracker defines the error for setting a nil SentSignatureTracker
Functions ¶
func NewSubroundBlock ¶
func NewSubroundBlock( baseSubround *spos.Subround, extend func(subroundId int), processingThresholdPercentage int, ) (*subroundBlock, error)
NewSubroundBlock creates a subroundBlock object
func NewSubroundEndRound ¶
func NewSubroundEndRound( baseSubround *spos.Subround, extend func(subroundId int), processingThresholdPercentage int, displayStatistics func(), appStatusHandler core.AppStatusHandler, sentSignatureTracker spos.SentSignaturesTracker, ) (*subroundEndRound, error)
NewSubroundEndRound creates a subroundEndRound object
func NewSubroundSignature ¶
func NewSubroundSignature( baseSubround *spos.Subround, extend func(subroundId int), appStatusHandler core.AppStatusHandler, sentSignatureTracker spos.SentSignaturesTracker, ) (*subroundSignature, error)
NewSubroundSignature creates a subroundSignature object
func NewSubroundStartRound ¶
func NewSubroundStartRound( baseSubround *spos.Subround, extend func(subroundId int), processingThresholdPercentage int, executeStoredMessages func(), resetConsensusMessages func(), sentSignatureTracker spos.SentSignaturesTracker, ) (*subroundStartRound, error)
NewSubroundStartRound creates a subroundStartRound object
func NewSubroundsFactory ¶
func NewSubroundsFactory( consensusDataContainer spos.ConsensusCoreHandler, consensusState spos.ConsensusStateHandler, worker spos.WorkerHandler, chainID []byte, currentPid core.PeerID, appStatusHandler core.AppStatusHandler, sentSignaturesTracker spos.SentSignaturesTracker, outportHandler outport.OutportHandler, ) (*factory, error)
NewSubroundsFactory creates a new consensusState object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.