maxbftmode

package
v0.0.0-...-bda353b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ConsensusTypeMAXBFT = "MAXBFT"

Variables

View Source
var NilTMAXBFTProvider provider.CoreProvider = (*maxbftProvider)(nil)

Functions

This section is empty.

Types

type CoreEngine

type CoreEngine struct {
	BlockVerifier  protocol.BlockVerifier  // block verifier, to verify block that proposer generated
	BlockCommitter protocol.BlockCommitter // block committer, to commit block to store after consensus

	MaxbftHelper protocol.MaxbftHelper
	// contains filtered or unexported fields
}

CoreEngine is a block handle engine. One core engine for one chain. nolint: unused, structcheck

func NewCoreEngine

func NewCoreEngine(cf *config.CoreEngineConfig) (*CoreEngine, error)

NewCoreEngine new a core engine.

func (*CoreEngine) GetBlockCommitter

func (c *CoreEngine) GetBlockCommitter() protocol.BlockCommitter

func (*CoreEngine) GetBlockProposer

func (c *CoreEngine) GetBlockProposer() protocol.BlockProposer

func (*CoreEngine) GetBlockVerifier

func (c *CoreEngine) GetBlockVerifier() protocol.BlockVerifier

func (*CoreEngine) GetMaxbftHelper

func (c *CoreEngine) GetMaxbftHelper() protocol.MaxbftHelper

func (*CoreEngine) OnMessage

func (c *CoreEngine) OnMessage(message *msgbus.Message)

OnMessage consume a message from message bus

func (*CoreEngine) OnQuit

func (c *CoreEngine) OnQuit()

OnQuit called when quit subsribe message from message bus

func (*CoreEngine) Start

func (c *CoreEngine) Start()

Start, initialize core engine

func (*CoreEngine) Stop

func (c *CoreEngine) Stop()

Stop, stop core engine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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