fbft

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 NewFBFTCore

func NewFBFTCore(blockSwitch chan<- interface{}, timer config.ConsensusTimeout, emptyBlock bool, signatureVerify config.SignatureVerifySwitch) *fbftCore

Types

type FBFTPolicy

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

func NewFBFTPolicy

func NewFBFTPolicy(timeout config.ConsensusTimeout, blockSwitch chan<- interface{}, emptyBlock bool, signVerify config.SignatureVerifySwitch) (*FBFTPolicy, error)

func (*FBFTPolicy) GetConsensusResult

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

func (*FBFTPolicy) Halt

func (instance *FBFTPolicy) Halt()

func (*FBFTPolicy) Initialization

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

func (*FBFTPolicy) Online added in v0.3.0

func (instance *FBFTPolicy) Online()

func (*FBFTPolicy) PolicyName

func (instance *FBFTPolicy) PolicyName() string

func (*FBFTPolicy) Prepare added in v1.0.0

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

func (*FBFTPolicy) Start

func (instance *FBFTPolicy) Start()

func (*FBFTPolicy) ToConsensus

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

Jump to

Keyboard shortcuts

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