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)
Click to show internal directories.
Click to hide internal directories.