Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consensus ¶
type Consensus interface { Start() error Stop() error HandleViewChange(proto.Message, chan bool) error HandleBlockPropose(proto.Message, chan bool) error }
Consensus is the interface for handling consensus view change.
func NewConsensus ¶
func NewConsensus(cfg *config.Config, bc blockchain.IBlockchain, tp txpool.TxPool, bs blocksync.BlockSync, dlg delegate.Pool) Consensus
NewConsensus creates a consensus struct.
Click to show internal directories.
Click to hide internal directories.