leanhelixterm

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CallCommitteeContractInterval = 200 * time.Millisecond

Variables

This section is empty.

Functions

Types

type ConsensusMessagesFilter

type ConsensusMessagesFilter struct {
	// contains filtered or unexported fields
}

func NewConsensusMessagesFilter

func NewConsensusMessagesFilter(handler TermMessagesHandler, keyManager interfaces.KeyManager, randomSeed uint64) *ConsensusMessagesFilter

func (*ConsensusMessagesFilter) HandleConsensusMessage

func (mp *ConsensusMessagesFilter) HandleConsensusMessage(message interfaces.ConsensusMessage) error

type LeanHelixTerm

type LeanHelixTerm struct {
	*ConsensusMessagesFilter
	// contains filtered or unexported fields
}

func NewLeanHelixTerm

func NewLeanHelixTerm(ctx context.Context, logger logger.LHLogger, config *interfaces.Config, state *state.State, electionTrigger interfaces.ElectionScheduler, onCommit interfaces.OnCommitCallback, prevBlock interfaces.Block, prevBlockProofBytes []byte, canBeFirstLeader bool) *LeanHelixTerm

func (*LeanHelixTerm) Dispose

func (lht *LeanHelixTerm) Dispose()

type TermMessagesHandler

type TermMessagesHandler interface {
	HandlePrePrepare(ppm *interfaces.PreprepareMessage)
	HandlePrepare(pm *interfaces.PrepareMessage)
	HandleViewChange(vcm *interfaces.ViewChangeMessage)
	HandleCommit(cm *interfaces.CommitMessage)
	HandleNewView(nvm *interfaces.NewViewMessage)
}

Jump to

Keyboard shortcuts

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