params

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 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 MainNetDIDParams = DIDParams{
	CheckRegisterDIDHeight:    0,
	VerifiableCredentialHeight: 526300,
}
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,
	RewardMinerOnlyStartHeight:  410500,
	RPCServiceLevel:             config.ConfigurationPermitted.String(),
}

MainNetParams defines the network parameters for the main network.

View Source
var RegNetParams, RegNetDIDParams = regNetParams(MainNetParams, MainNetDIDParams)

RegNetParams defines the network parameters for the regression network.

View Source
var TestNetParams, TestNetDIDParams = testNetParams(MainNetParams, MainNetDIDParams)

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

type DIDParams added in v0.3.0

type DIDParams struct {
	// CheckRegisterDIDHeight defines the height to check RegisterDID transactions.
	CheckRegisterDIDHeight uint32

	//VerifiableCredentialHeight defines the height to VerifiableCredential.
	VerifiableCredentialHeight uint32
}

Jump to

Keyboard shortcuts

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