config

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ThreeFoldTokenUnit defines the unit of one ThreeFold Token.
	ThreeFoldTokenUnit = "TFT"
	// ThreeFoldTokenChainName defines the name of the ThreeFoldToken chain.
	ThreeFoldTokenChainName = "tfchain"
)
View Source
const (
	NetworkNameStandard = "standard"
	NetworkNameTest     = "testnet"
	NetworkNameDev      = "devnet"
)

chain names

View Source
const (
	StandardNetworkBlockFrequency types.BlockHeight = 120 // 1 block per 2 minutes on average
	TestNetworkBlockFrequency     types.BlockHeight = 120 // 1 block per 2 minutes on average
)

global network config constants

Variables

View Source
var (

	// Version of the tfchain binaries.
	//
	// Value is defined by a private build flag,
	// or hardcoded to the latest released tag as fallback.
	Version build.ProtocolVersion
)

Functions

func GetBlockchainInfo

func GetBlockchainInfo() types.BlockchainInfo

GetBlockchainInfo returns the naming and versioning of tfchain.

func GetCurrencyUnits

func GetCurrencyUnits() types.CurrencyUnits

GetCurrencyUnits returns the currency units used for all ThreeFold networks.

func GetDevnetGenesis

func GetDevnetGenesis() types.ChainConstants

GetDevnetGenesis explicitly sets all the required constants for the genesis block of the devnet

func GetStandardnetBootstrapPeers

func GetStandardnetBootstrapPeers() []modules.NetAddress

GetStandardnetBootstrapPeers sets the standard bootstrap node addresses

func GetStandardnetGenesis

func GetStandardnetGenesis() types.ChainConstants

GetStandardnetGenesis explicitly sets all the required constants for the genesis block of the standard (prod) net

func GetTestnetBootstrapPeers

func GetTestnetBootstrapPeers() []modules.NetAddress

GetTestnetBootstrapPeers sets the testnet bootstrap node addresses

func GetTestnetGenesis

func GetTestnetGenesis() types.ChainConstants

GetTestnetGenesis explicitly sets all the required constants for the genesis block of the testnet

Types

This section is empty.

Jump to

Keyboard shortcuts

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