factory

package
v0.0.0-...-4097cb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2020 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBFTEngine

func GetBFTEngine(privateKey *ecdsa.PrivateKey, folder string) (consensus.Engine, error)

func GetBFTSubchainEngine

func GetBFTSubchainEngine(privateKey *ecdsa.PrivateKey, folder string) (consensus.Engine, error)

subchain bft engine engine here need to input the privatekey TODO: not use privateKey as an input

func GetConsensusEngine

func GetConsensusEngine(minerAlgorithm string, folder string) (consensus.Engine, error)

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

func MustGetConsensusEngine(minerAlgorithm string) consensus.Engine

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL