bft

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: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBFTCore

func NewBFTCore(result chan *messages.ConsensusResult) *bftCore

Types

type BFTPolicy

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

func NewBFTPolicy

func NewBFTPolicy(timeout config.ConsensusTimeout) (*BFTPolicy, error)

func (*BFTPolicy) GetConsensusResult

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

func (*BFTPolicy) Halt

func (instance *BFTPolicy) Halt()

func (*BFTPolicy) Initialization

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

func (*BFTPolicy) Online added in v0.3.0

func (instance *BFTPolicy) Online()

func (*BFTPolicy) PolicyName

func (instance *BFTPolicy) PolicyName() string

func (*BFTPolicy) Prepare added in v1.0.0

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

func (*BFTPolicy) Start

func (instance *BFTPolicy) Start()

func (*BFTPolicy) ToConsensus

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

Jump to

Keyboard shortcuts

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