factory

package
v0.0.0-...-eb06fb6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: LGPL-3.0 Imports: 11 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)

GetBFTEngine returns the BFT engine

func GetConsensusEngine

func GetConsensusEngine(minerAlgorithm 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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