params

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 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 ID 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:       2017002,
	DefaultPort: 20608,

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

	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:        160340,
	CRClaimDPOSNodeStartHeight:  751400,
	NewP2PProtocolVersionHeight: 751400,
	CheckRegisterDIDHeight:      0,
	RewardMinerOnlyStartHeight:  410500,
}

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