params

package
v0.0.0-...-e920dd0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainNetParams = config.Params{
	Name:        "mainnet",
	Magic:       2019005,
	DefaultPort: 20628,

	DNSSeeds: []string{
		"node-mainnet-005.elastos.org:20628",
		"node-mainnet-010.elastos.org:20628",
		"node-mainnet-015.elastos.org:20628",
		"node-mainnet-020.elastos.org:20628",
		"node-mainnet-025.elastos.org:20628",
	},

	Foundation:           mainNetFoundation,
	ElaAssetId:           elaAssetId,
	GenesisBlock:         genesisBlock,
	PowLimit:             powLimit,
	PowLimitBits:         0x1f0008ff,
	TargetTimespan:       24 * time.Hour,
	TargetTimePerBlock:   2 * time.Minute,
	AdjustmentFactor:     4,
	CoinbaseMaturity:     100,
	MinTransactionFee:    100,
	ExchangeRate:         1,
	MinCrossChainTxFee:   10000,
	CheckPowHeaderHeight: 31538,
}

MainNetParams defines the network parameters for the main network.

View Source
var MainNetSpvParams = config.Params{
	Magic:      2017001,
	Foundation: mainNetFoundation,

	DNSSeeds: []string{
		"node-mainnet-002.elastos.org",
		"node-mainnet-003.elastos.org",
		"node-mainnet-004.elastos.org",
		"node-mainnet-006.elastos.org",
		"node-mainnet-007.elastos.org",
		"node-mainnet-014.elastos.org",
		"node-mainnet-015.elastos.org",
		"node-mainnet-016.elastos.org",
		"node-mainnet-017.elastos.org",
		"node-mainnet-022.elastos.org",
		"node-mainnet-021.elastos.org",
		"node-mainnet-023.elastos.org",
	},

	DefaultPort: 20866,
}

MainNetSpvParams defines the network parameters for the main network SPV.

View Source
var RegNetParams = regNetParams(MainNetParams)

RegNetParams defines the network parameters for the regression network.

View Source
var RegNetSpvParams = config.Params{
	Foundation: mainNetFoundation,
}

RegNetSpvParams defines the network parameters for the regression network SPV.

View Source
var TestNetParams = testNetParams(MainNetParams)

TestNetParams defines the network parameters for the test network.

View Source
var TestNetSpvParams = config.Params{
	Magic:      2018001,
	Foundation: mainNetFoundation,

	DNSSeeds: []string{
		"node-testnet-001.elastos.org",
		"node-testnet-002.elastos.org",
		"node-testnet-003.elastos.org",
		"node-testnet-004.elastos.org",
		"node-testnet-005.elastos.org",
	},

	DefaultPort: 21866,
}

TestNetSpvParams defines the network parameters for the test network SPV.

Functions

func InstantBlock

func InstantBlock(cfg *config.Params)

InstantBlock changes the given network parameter to instant block mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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