params

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ELAAssetID represents the asset ID of ELA coin.
	ElaAssetId = elaAsset.Hash()

	// GenesisBlock represent the genesis block of the Token chain.
	GenesisBlock = &types.Block{
		Header:       genesisHeader,
		Transactions: []*types.Transaction{&elaAsset},
	}
)

These variables are the chain consensus parameters.

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

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

	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 RegNetParams = regNetParams(MainNetParams)

RegNetParams defines the network parameters for the regression network.

View Source
var TestNetParams = testNetParams(MainNetParams)

TestNetParams defines the network parameters for the test network.

Functions

func InstantBlock added in v0.1.2

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