networks

package
v1.2.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0, MIT Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetworkFromName added in v1.2.0

func GetNetworkFromName(name string) (constants.NetworkType, error)

func LoadGenesis added in v1.2.0

func LoadGenesis(ctx context.Context, rep repo.Repo, sourceName string, network string) (genesis.InitFunc, error)

func SetConfigFromOptions added in v1.2.0

func SetConfigFromOptions(cfg *config.Config, network string) error

Types

type NetworkConf

type NetworkConf struct {
	Bootstrap config.BootstrapConfig
	Network   config.NetworkParamsConfig
}

func ButterflySnapNet added in v1.2.0

func ButterflySnapNet() *NetworkConf

func Calibration

func Calibration() *NetworkConf

func ForceNet added in v1.1.0

func ForceNet() *NetworkConf

func IntegrationNet

func IntegrationNet() *NetworkConf

func InteropNet added in v0.9.7

func InteropNet() *NetworkConf

func Mainnet

func Mainnet() *NetworkConf

func Net2k

func Net2k() *NetworkConf

Jump to

Keyboard shortcuts

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