Documentation ¶
Index ¶
- func GetBFTEngine(privateKey *ecdsa.PrivateKey, folder string) (consensus.Engine, error)
- func GetBFTSubchainEngine(privateKey *ecdsa.PrivateKey, folder string) (consensus.Engine, error)
- func GetConsensusEngine(minerAlgorithm string, folder string) (consensus.Engine, error)
- func MustGetConsensusEngine(minerAlgorithm string) consensus.Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBFTEngine ¶
func GetBFTSubchainEngine ¶
subchain bft engine engine here need to input the privatekey TODO: not use privateKey as an input
func GetConsensusEngine ¶
GetConsensusEngine get consensus engine according to miner algorithm name WARNING: engine may be a heavy instance. we should have as less as possible in our process.
func MustGetConsensusEngine ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.