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() }
Consensus handles the different consensus strategy.
func Factory ¶
func Factory(consensusType string, account *account.Account, baseVariable global.BaseVariable, blkcache blockcache.BlockCache, txPool txpool.TxPool, service p2p.Service) (Consensus, error)
Factory handles the different consensus strategy.
Click to show internal directories.
Click to hide internal directories.