Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubroundBlock ¶
SubroundBlock defines the data needed by the subround Block
func NewSubroundBlock ¶
func NewSubroundBlock( baseSubround *spos.Subround, extend func(subroundId int), mtBlockBody int, mtBlockHeader int, processingThresholdPercentage int, getSubroundName func(subroundId int) string, ) (*SubroundBlock, error)
NewSubroundBlock creates a SubroundBlock object
func (*SubroundBlock) ReceivedBlockBody ¶
func (sr *SubroundBlock) ReceivedBlockBody(cnsDta *consensus.Message) bool
ReceivedBlockBody method is called when a block body is received through the block body channel
func (*SubroundBlock) ReceivedBlockHeader ¶
func (sr *SubroundBlock) ReceivedBlockHeader(cnsDta *consensus.Message) bool
ReceivedBlockHeader method is called when a block header is received through the block header channel. If the block header is valid, than the validatorRoundStates map corresponding to the node which sent it, is set on true for the subround Block
type SubroundStartRound ¶
SubroundStartRound defines the data needed by the subround StartRound
func NewSubroundStartRound ¶
func NewSubroundStartRound( baseSubround *spos.Subround, extend func(subroundId int), processingThresholdPercentage int, getSubroundName func(subroundId int) string, executeStoredMessages func(), broadcastUnnotarisedBlocks func(), ) (*SubroundStartRound, error)
NewSubroundStartRound creates a SubroundStartRound object
Click to show internal directories.
Click to hide internal directories.