dbft

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBFTCore

func NewDBFTCore(result chan *messages.ConsensusResult) *dbftCore

Types

type DBFTPolicy

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

func NewDBFTPolicy

func NewDBFTPolicy(timeout config.ConsensusTimeout) (*DBFTPolicy, error)

func (*DBFTPolicy) GetConsensusResult

func (instance *DBFTPolicy) GetConsensusResult() common.ConsensusResult

func (*DBFTPolicy) Halt

func (instance *DBFTPolicy) Halt()

func (*DBFTPolicy) Initialization

func (instance *DBFTPolicy) Initialization(local account.Account, master account.Account, peers []account.Account, events types.EventCenter, onLine bool)

func (*DBFTPolicy) Online added in v0.3.0

func (instance *DBFTPolicy) Online()

func (*DBFTPolicy) PolicyName

func (instance *DBFTPolicy) PolicyName() string

func (*DBFTPolicy) Prepare added in v1.0.0

func (instance *DBFTPolicy) Prepare(account account.Account)

func (*DBFTPolicy) Start

func (instance *DBFTPolicy) Start()

func (*DBFTPolicy) ToConsensus

func (instance *DBFTPolicy) ToConsensus(p *common.Proposal) error

Jump to

Keyboard shortcuts

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