fbft

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFBFTCore

func NewFBFTCore(local account.Account, blockSwitch chan<- interface{}) *fbftCore

Types

type FBFTPolicy

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

func NewFBFTPolicy

func NewFBFTPolicy(account account.Account, timeout int64, blockSwitch chan<- interface{}) (*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(master account.Account, peers []account.Account, events types.EventCenter, onLine bool) error

func (*FBFTPolicy) Online added in v0.3.0

func (instance *FBFTPolicy) Online()

func (*FBFTPolicy) PolicyName

func (instance *FBFTPolicy) PolicyName() string

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