fbft

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 13 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 (self *FBFTPolicy) GetConsensusResult() common.ConsensusResult

func (*FBFTPolicy) Halt

func (instance *FBFTPolicy) Halt()

func (*FBFTPolicy) Initialization

func (instance *FBFTPolicy) Initialization(role map[account.Account]commonr.Roler, peers []account.Account, events types.EventCenter) error

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