consensus

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consensus

type Consensus interface {
	PolicyName() string
	Initialization(account.Account, []account.Account, types.EventCenter, bool) error
	ToConsensus(p *common.Proposal) error
	GetConsensusResult() common.ConsensusResult
	Online()
	Start()
	Halt()
}

func NewConsensus

func NewConsensus(conf config.ConsensusConfig, account account.Account, blockSwitch chan<- interface{}) (Consensus, error)

Directories

Path Synopsis
policy
bft

Jump to

Keyboard shortcuts

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