params

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// The main chain asset ID
	ElaAssetId = elaAsset.Hash()

	// genesis block
	GenesisBlock = &types.Block{
		Header:       genesisHeader,
		Transactions: []*types.Transaction{&elaAsset},
	}
)
View Source
var MainNetParams = config.Params{
	Name:        "mainnet",
	Magic:       2018001,
	DefaultPort: 20608,

	SeedList: []string{
		"did-mainnet-001.elastos.org",
		"did-mainnet-002.elastos.org",
		"did-mainnet-003.elastos.org",
		"did-mainnet-004.elastos.org",
		"did-mainnet-005.elastos.org",
	},

	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,

	SpvParams: MainNetSpvParams,
}

MainNetParams defines the network parameters for the main network.

View Source
var MainNetSpvParams = config.SpvParams{
	Magic:      2017001,
	Foundation: "8VYXVxKKSAxkmRrfmGpQR2Kc66XhG6m3ta",

	SeedList: []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 TestNetParams = config.Params{
	Name:        "testnet",
	Magic:       20180011,
	DefaultPort: 21608,

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

	Foundation: testNetFoundation,

	SpvParams: TestNetSpvParams,
}

TestNetParams defines the network parameters for the test network.

View Source
var TestNetSpvParams = config.SpvParams{
	Magic:      2018001,
	Foundation: "8ZNizBf4KhhPjeJRGpox6rPcHE5Np6tFx3",

	SeedList: []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

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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