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 is a consensus server.
func New ¶ added in v1.1.0
func New(cType Type, account *account.KeyPair, baseVariable global.BaseVariable, blkcache blockcache.BlockCache, txPool txpool.TxPool, service p2p.Service) Consensus
New returns the different consensus strategy.
Click to show internal directories.
Click to hide internal directories.