factory

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: LGPL-3.0 Imports: 12 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 GetConsensusEngine

func GetConsensusEngine(minerAlgorithm string, folder string, percentage int) (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