network

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network string

Name represents name of blockchain used when running a node.

const MainNetNetwork Network = "mainnet"
const SiriusNetwork Network = "sirius"
const StandaloneNetwork Network = "standalone"

func (Network) ConsensusConfig

func (n Network) ConsensusConfig() ([]byte, error)

func (Network) ConsensusGenesis

func (n Network) ConsensusGenesis(pv *privval.FilePV) ([]byte, error)

func (Network) ConsensusProtocolBlockVersion

func (n Network) ConsensusProtocolBlockVersion() (version.Protocol, error)

func (Network) DatabaseGenesis

func (n Network) DatabaseGenesis() ([]byte, error)

func (Network) DatabaseKeystore

func (n Network) DatabaseKeystore() (map[string][]byte, error)

Directories

Path Synopsis
mainnet
sirius
standalone

Jump to

Keyboard shortcuts

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