commonSubround

package
v1.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubroundBlock

type SubroundBlock struct {
	*spos.Subround
	// contains filtered or unexported fields
}

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

type SubroundStartRound struct {
	*spos.Subround
	// contains filtered or unexported fields
}

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(),
) (*SubroundStartRound, error)

NewSubroundStartRound creates a SubroundStartRound object

func (*SubroundStartRound) SetAppStatusHandler added in v1.0.12

func (sr *SubroundStartRound) SetAppStatusHandler(ash core.AppStatusHandler) error

SetAppStatusHandler method set appStatusHandler

func (*SubroundStartRound) SetIndexer added in v1.0.20

func (sr *SubroundStartRound) SetIndexer(indexer indexer.Indexer)

SetIndexer method set indexer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL