consensus

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

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, []account.Account, types.EventCenter, bool)
	ToConsensus(p *common.Proposal) error
	GetConsensusResult() common.ConsensusResult
	Online()
	Start()
	Halt()
}

func NewConsensus

func NewConsensus(conf config.ConsensusConfig, 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