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
InstantBlock changes the given network parameter to instant block mode.
Types ¶
Click to show internal directories.
Click to hide internal directories.