Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaturityPeriod uint64 = 60 * 60 // 1 hour PoS cooldown MaturityPeriodAsgard uint64 = 30 * 60 // 30 minute PoS cooldown for Asgard AveragingWindow uint64 = 60 // 60 blocks TargetBlockGap uint64 = 60 // 60 second block time MinBlockGap uint64 = 30 // 30 seconds minimum before new timestamp MaxFutureGap uint64 = 3 // only accept blocks this many seconds ahead TargetPeriodGap uint64 = AveragingWindow * TargetBlockGap BlockTimeEMAPeriod uint64 = 360 // Banana-blocktime hardfork activation changes TargetBlockGapBanana uint64 = 15 MinBlockGapBanana uint64 = 7 // DoS protection OldForkPeriod uint64 = 15 * 60 StakeThrottle uint64 = 60 UnlimitedGas uint64 = 1 << 40 MasternodeCallGas uint64 = 1000000 // MaxCheckpointVoteBlockAge defines the period in blocks count from the time // the checkpoint signer account proposes a checkpoint in which its voting // is permitted. MaxCheckpointVoteBlockAge = 1440 // GeneralProxyCtxKey is used to pass the governed proxy address hash to // the filter logs interface. GeneralProxyCtxKey = ctxKey("governedProxyAddressHash") // MaxTimeDifferenceDrop defines the maximum time difference that can be used // to calculate the difficulty drop when the newly created block is found long // after block target time. This MaxTimeDifferenceDrop = -30 // StakerReward defines what percentage of used gas for specific block is rewarded to staker StakerReward = 10 // Active stake for creating a new block = Balance - Staked NRG in the last StakeCheckDepth blocks StakeCheckDepth = 0 // GainBanana parameter is part of difficulty adjustment algorithm that corresponds to the speed of adjustment of the difficulty GainBanana = 15000 )
Variables ¶
View Source
var ( Energi_BlockReward = common.BigToAddress(big.NewInt(0x300)) Energi_Treasury = common.BigToAddress(big.NewInt(0x301)) Energi_MasternodeRegistry = common.BigToAddress(big.NewInt(0x302)) Energi_StakerReward = common.BigToAddress(big.NewInt(0x303)) Energi_BackboneReward = common.BigToAddress(big.NewInt(0x304)) Energi_SporkRegistry = common.BigToAddress(big.NewInt(0x305)) Energi_CheckpointRegistry = common.BigToAddress(big.NewInt(0x306)) Energi_BlacklistRegistry = common.BigToAddress(big.NewInt(0x307)) Energi_MigrationContract = common.BigToAddress(big.NewInt(0x308)) Energi_MasternodeToken = common.BigToAddress(big.NewInt(0x309)) Energi_Blacklist = common.BigToAddress(big.NewInt(0x30A)) Energi_Whitelist = common.BigToAddress(big.NewInt(0x30B)) Energi_MasternodeList = common.BigToAddress(big.NewInt(0x30C)) Energi_HardforkRegistry = common.BigToAddress(big.NewInt(0x30D)) // Only used in simnet and devnet, check ChainConfig Energi_BlockRewardV1 = common.BigToAddress(big.NewInt(0x310)) Energi_TreasuryV1 = common.BigToAddress(big.NewInt(0x311)) Energi_MasternodeRegistryV1 = common.BigToAddress(big.NewInt(0x312)) Energi_StakerRewardV1 = common.BigToAddress(big.NewInt(0x313)) Energi_BackboneRewardV1 = common.BigToAddress(big.NewInt(0x314)) Energi_SporkRegistryV1 = common.BigToAddress(big.NewInt(0x315)) Energi_CheckpointRegistryV1 = common.BigToAddress(big.NewInt(0x316)) Energi_BlacklistRegistryV1 = common.BigToAddress(big.NewInt(0x317)) Energi_CompensationFundV1 = common.BigToAddress(big.NewInt(0x318)) Energi_MasternodeTokenV1 = common.BigToAddress(big.NewInt(0x319)) Energi_HardforkRegistryV1 = common.BigToAddress(big.NewInt(0x321)) // Only used in simnet and devnet, check ChainConfig Energi_SystemFaucet = common.BigToAddress(big.NewInt(0x320)) Energi_Ephemeral = common.HexToAddress("0x457068656d6572616c") // NOTE: this is NOT very safe, but it optimizes significantly Storage_ProxyImpl = common.BigToHash(big.NewInt(0x01)) )
View Source
var EnergiCheckpoints = map[common.Hash]map[uint64]common.Hash{ eth_params.MainnetGenesisHash: { uint64(38283): common.HexToHash("0xbcdaf97b5fa9041b34afcee7ffa85ce88e8e1a9eada2855b5e3ee55b8153f70d"), uint64(38284): common.HexToHash("0x2a724c7ae36f26b61f5702b0b2099c37061b105b619f250991b573e8d32d63a0"), uint64(324911): common.HexToHash("0x6c4d2ec49ebe49135793733b8fb43adf5e0d883d96a8d65dbe98e1debcc77c3a"), uint64(324913): common.HexToHash("0x7ea1dd2b9b737ea22232dc55378ea9c11aa8e5d1712ad650f1cf2fa53fe820c8"), uint64(325054): common.HexToHash("0x9d33948d3411b8276696e2a4422b412830a4083082d523463bd79ab572803ddd"), uint64(563400): common.HexToHash("0xfc5725db1869a1ca7a19769e376c826792719fe8d361f5fc9d8407725faae3f5"), uint64(765780): common.HexToHash("0x265f3b69f31a6f077db1acd84680dd8177eedbd7167b510997cfaa92fd31358c"), uint64(1555623): common.HexToHash("0xeb1cc9479194d085eab9bb16ceae5aeec547f6216fe5b68596fde5b5e13ed018"), }, eth_params.TestnetGenesisHash: { uint64(100000): common.HexToHash("0x581e691b64ffbec38b484796377581443ada724db6fbeb6e611573fbea04ecd2"), uint64(200000): common.HexToHash("0xe791464c99d0921c58d2fdc3b93d0e4d42b4d5f2a3b499f0982cb695483b4b82"), uint64(300000): common.HexToHash("0x3bab5c007ede9d287e3ccccbb1534c3f580b7ea52ed4f1097500bc6338bea7ff"), uint64(400000): common.HexToHash("0x563f3fd48dc9b6b87a49ba0f69a9ab6bbccbc3a1394b6bc74794bf3377d8210b"), uint64(500000): common.HexToHash("0xed8b151dd83abcac55246eb2447cb70444b00cff9b25212947b4670b01844888"), uint64(600000): common.HexToHash("0x1b35b6a6ae757157401fe326fd87d183b6cf1e5dd490cc58e15b9038dedd8faf"), uint64(700000): common.HexToHash("0x10b39c50ac7e0a7f4c24c471d70a20ad64c860ee4f79ffaf7cfa6e3dba11008b"), uint64(800000): common.HexToHash("0x4bc90008915235989ef86ebcc7668dd67d83f05460d248b59fe6c2b45e0be778"), }, }
map Genesis to map of checkpoints
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.