Documentation ¶
Index ¶
- Constants
- Variables
- func ArchiveVersion(gitCommit string) string
- func VersionWithCommit(gitCommit string) string
- type ChainConfig
- func (c *ChainConfig) CheckCompatible(newcfg *ChainConfig, height uint64) *ConfigCompatError
- func (c *ChainConfig) GasTable(num *big.Int) GasTable
- func (c *ChainConfig) IsByzantium(num *big.Int) bool
- func (c *ChainConfig) IsConstantinople(num *big.Int) bool
- func (c *ChainConfig) IsEIP150(num *big.Int) bool
- func (c *ChainConfig) IsEIP155(num *big.Int) bool
- func (c *ChainConfig) IsEIP158(num *big.Int) bool
- func (c *ChainConfig) IsEWASM(num *big.Int) bool
- func (c *ChainConfig) IsHomestead(num *big.Int) bool
- func (c *ChainConfig) IsPetersburg(num *big.Int) bool
- func (c *ChainConfig) Rules(num *big.Int) Rules
- func (c *ChainConfig) String() string
- type CliqueConfig
- type ConfigCompatError
- type EnergiConfig
- type EthashConfig
- type GasTable
- type Rules
- type TrustedCheckpoint
Constants ¶
const ( Wei = 1 GWei = 1e9 Ether = 1e18 )
These are the multipliers for ether denominations. Example: To get the wei value of an amount in 'gwei', use
new(big.Int).Mul(value, big.NewInt(params.GWei))
const ( // BloomBitsBlocks is the number of blocks a single bloom bit section vector // contains on the server side. BloomBitsBlocks uint64 = 4096 // BloomBitsBlocksClient is the number of blocks a single bloom bit section vector // contains on the light client side BloomBitsBlocksClient uint64 = 32768 // BloomConfirms is the number of confirmation blocks before a bloom section is // considered probably final and its rotated bits are calculated. BloomConfirms = 256 // CHTFrequencyClient is the block frequency for creating CHTs on the client side. CHTFrequencyClient = 32768 // CHTFrequencyServer is the block frequency for creating CHTs on the server side. // Eventually this can be merged back with the client version, but that requires a // full database upgrade, so that should be left for a suitable moment. CHTFrequencyServer = 4096 // BloomTrieFrequency is the block frequency for creating BloomTrie on both // server/client sides. BloomTrieFrequency = 32768 // HelperTrieConfirmations is the number of confirmations before a client is expected // to have the given HelperTrie available. HelperTrieConfirmations = 2048 // HelperTrieProcessConfirmations is the number of confirmations before a HelperTrie // is generated HelperTrieProcessConfirmations = 256 )
const ( GasLimitBoundDivisor uint64 = 1024 // The bound divisor of the gas limit, used in update calculations. MinGasLimit uint64 = 40000000 // Minimum the gas limit may ever be. GenesisGasLimit uint64 = 40000000 // Gas limit of the Genesis block. MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis. ExpByteGas uint64 = 10 // Times ceil(log256(exponent)) for the EXP instruction. SloadGas uint64 = 50 // Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added. CallValueTransferGas uint64 = 9000 // Paid for CALL when the value transfer is non-zero. CallNewAccountGas uint64 = 25000 // Paid for CALL when the destination address didn't exist prior. TxGas uint64 = 21000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions. TxGasContractCreation uint64 = 53000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions. TxDataZeroGas uint64 = 4 // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions. QuadCoeffDiv uint64 = 512 // Divisor for the quadratic particle of the memory cost equation. LogDataGas uint64 = 8 // Per byte in a LOG* operation's data. CallStipend uint64 = 2300 // Free gas given at beginning of call. Sha3Gas uint64 = 30 // Once per SHA3 operation. Sha3WordGas uint64 = 6 // Once per word of the SHA3 operation's data. SstoreSetGas uint64 = 20000 // Once per SLOAD operation. SstoreResetGas uint64 = 5000 // Once per SSTORE operation if the zeroness changes from zero. SstoreClearGas uint64 = 5000 // Once per SSTORE operation if the zeroness doesn't change. SstoreRefundGas uint64 = 15000 // Once per SSTORE operation if the zeroness changes to zero. NetSstoreNoopGas uint64 = 200 // Once per SSTORE operation if the value doesn't change. NetSstoreInitGas uint64 = 20000 // Once per SSTORE operation from clean zero. NetSstoreCleanGas uint64 = 5000 // Once per SSTORE operation from clean non-zero. NetSstoreDirtyGas uint64 = 200 // Once per SSTORE operation from dirty. NetSstoreClearRefund uint64 = 15000 // Once per SSTORE operation for clearing an originally existing storage slot NetSstoreResetRefund uint64 = 4800 // Once per SSTORE operation for resetting to the original non-zero value NetSstoreResetClearRefund uint64 = 19800 // Once per SSTORE operation for resetting to the original zero value JumpdestGas uint64 = 1 // Refunded gas, once per SSTORE operation if the zeroness changes to zero. EpochDuration uint64 = 30000 // Duration between proof-of-work epochs. CallGas uint64 = 40 // Once per CALL operation & message call transaction. CreateDataGas uint64 = 200 // CallCreateDepth uint64 = 1024 // Maximum depth of call/create stack. ExpGas uint64 = 10 // Once per EXP instruction LogGas uint64 = 375 // Per LOG* operation. CopyGas uint64 = 3 // StackLimit uint64 = 1024 // Maximum size of VM stack allowed. TierStepGas uint64 = 0 // Once per operation, for a selection of them. LogTopicGas uint64 = 375 // Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas. CreateGas uint64 = 32000 // Once per CREATE operation & contract-creation transaction. Create2Gas uint64 = 32000 // Once per CREATE2 operation SuicideRefundGas uint64 = 24000 // Refunded following a suicide operation. MemoryGas uint64 = 3 // Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL. TxDataNonZeroGas uint64 = 68 // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions. MaxCodeSize = 24576 // Maximum bytecode to permit for a contract EcrecoverGas uint64 = 3000 // Elliptic curve sender recovery gas price Sha256BaseGas uint64 = 60 // Base price for a SHA256 operation Sha256PerWordGas uint64 = 12 // Per-word price for a SHA256 operation Ripemd160BaseGas uint64 = 600 // Base price for a RIPEMD160 operation Ripemd160PerWordGas uint64 = 120 // Per-word price for a RIPEMD160 operation IdentityBaseGas uint64 = 15 // Base price for a data copy operation IdentityPerWordGas uint64 = 3 // Per-work price for a data copy operation ModExpQuadCoeffDiv uint64 = 20 // Divisor for the quadratic particle of the big int modular exponentiation Bn256AddGas uint64 = 500 // Gas needed for an elliptic curve addition Bn256ScalarMulGas uint64 = 40000 // Gas needed for an elliptic curve scalar multiplication Bn256PairingBaseGas uint64 = 100000 // Base price for an elliptic curve pairing check Bn256PairingPerPointGas uint64 = 80000 // Per-point price for an elliptic curve pairing check )
const ( VersionMajor = 1 // Major version component of the current release VersionMinor = 1 // Minor version component of the current release VersionPatch = 8 // Patch version component of the current release VersionMeta = "stable" // Version metadata to append to the version string )
Variables ¶
var ( MainnetGenesisHash = common.HexToHash("0xd8e2a3b0ad08f8eaabaf653d25b7d9beee2911101010a2cd4f6692a9a1dc228a") TestnetGenesisHash = common.HexToHash("0x93b3a19ffad91326cd638f15930fdea1268c24d599b50b0e19299209c70c0e4e") MainnetMigrationSigner = common.HexToAddress("0xac34a2555de08384cd7960f35d3ab048fcf9f83a") TestnetMigrationSigner = common.HexToAddress("0xb1372ea07f6a92bc86fd5f8cdf468528f79f87ca") MainnetEBISigner = common.HexToAddress("0x01C3bB0b90C07b89CA38F56Bd9f3E8C160fec4dC") TestnetEBISigner = common.HexToAddress("0x25bbaaaf27ab1966c3ab9faf31277a1db7601f3f") MainnetCPPSigner = common.HexToAddress("0xBD1C57eACcfD1519E342F870C1c551983F839479") TestnetCPPSigner = common.HexToAddress("0xb1372ea07f6a92bc86fd5f8cdf468528f79f87ca") MainnetHFSigner = common.HexToAddress("0x44D16E845ec2d2D6A99a10fe44EE99DA0541CF31") TestnetHFSigner = common.HexToAddress("0x5b00118464fa6e73f9c2a4ea44e1cbfa9f5b83c6") MainnetBackbone = common.HexToAddress("0x79C7CF016E53e5C47906c2daF6De2aA00AAcdB1e") TestnetBackbone = common.HexToAddress("0x5143c57fcde025f05a19d0de9a7dac852e553624") MainnetHFProxy = common.HexToAddress("0xe2616f793916A0BD9C66939c08c94693d483df03") TestnetHFProxy = common.HexToAddress("0x886c71F1Af530478204dD12fB0BA34A46899C16D") )
Genesis hashes to enforce below configs on.
var ( EnergiMainnetChainConfig = &ChainConfig{ ChainID: big.NewInt(39797), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP150Hash: common.Hash{}, EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0), ConstantinopleBlock: big.NewInt(0), PetersburgBlock: big.NewInt(0), Energi: &EnergiConfig{ BackboneAddress: MainnetBackbone, MigrationSigner: MainnetMigrationSigner, EBISigner: MainnetEBISigner, CPPSigner: MainnetCPPSigner, HFSigner: MainnetHFSigner, HardforkRegistryProxyAddress: MainnetHFProxy, }, SuperblockCycle: big.NewInt(60 * 24 * 14), MNRequireValidation: big.NewInt(10), MNValidationPeriod: big.NewInt(5), MNCleanupPeriod: big.NewInt(60 * 60 * 24 * 14), MNEverCollateral: new(big.Int).Mul(big.NewInt(3000000), big.NewInt(Ether)), MNRewardsPerBlock: big.NewInt(10), HFFinalizationPeriod: big.NewInt(30), } EnergiTestnetChainConfig = &ChainConfig{ ChainID: big.NewInt(49797), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP150Hash: common.Hash{}, EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0), ConstantinopleBlock: big.NewInt(0), PetersburgBlock: big.NewInt(0), Energi: &EnergiConfig{ BackboneAddress: TestnetBackbone, MigrationSigner: TestnetMigrationSigner, EBISigner: TestnetEBISigner, CPPSigner: TestnetCPPSigner, HFSigner: TestnetHFSigner, HardforkRegistryProxyAddress: TestnetHFProxy, }, SuperblockCycle: big.NewInt(60 * 24), MNRequireValidation: big.NewInt(5), MNValidationPeriod: big.NewInt(5), MNCleanupPeriod: big.NewInt(60 * 60 * 3), MNEverCollateral: new(big.Int).Mul(big.NewInt(30000), big.NewInt(Ether)), MNRewardsPerBlock: big.NewInt(10), HFFinalizationPeriod: big.NewInt(10), } // MainnetChainConfig is the chain parameters to run a node on the main network. MainnetChainConfig = &ChainConfig{ ChainID: big.NewInt(39797), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP150Hash: common.Hash{}, EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0), ConstantinopleBlock: big.NewInt(0), PetersburgBlock: big.NewInt(0), Ethash: new(EthashConfig), Energi: &EnergiConfig{ HardforkRegistryProxyAddress: MainnetHFProxy, }, } // MainnetTrustedCheckpoint contains the light client trusted checkpoint for the main network. MainnetTrustedCheckpoint = &TrustedCheckpoint{ Name: "mainnet", SectionIndex: 1, SectionHead: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), CHTRoot: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), BloomRoot: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), } // TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network. TestnetChainConfig = &ChainConfig{ ChainID: big.NewInt(49797), HomesteadBlock: big.NewInt(0), EIP150Block: big.NewInt(0), EIP150Hash: common.Hash{}, EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0), ConstantinopleBlock: big.NewInt(0), PetersburgBlock: big.NewInt(0), Ethash: new(EthashConfig), Energi: &EnergiConfig{ HardforkRegistryProxyAddress: TestnetHFProxy, }, } // TestnetTrustedCheckpoint contains the light client trusted checkpoint for the Ropsten test network. TestnetTrustedCheckpoint = &TrustedCheckpoint{ Name: "testnet", SectionIndex: 1, SectionHead: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), CHTRoot: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), BloomRoot: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), } // AllEthashProtocolChanges contains every protocol change (EIPs) introduced // and accepted by the Ethereum core developers into the Ethash consensus. // // This configuration is intentionally not using keyed fields to force anyone // adding flags to the config to also have to set these fields. AllEthashProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil, &EnergiConfig{HardforkRegistryProxyAddress: common.BigToAddress(big.NewInt(0x30D))}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0)} // AllCliqueProtocolChanges contains every protocol change (EIPs) introduced // and accepted by the Ethereum core developers into the Clique consensus. // // This configuration is intentionally not using keyed fields to force anyone // adding flags to the config to also have to set these fields. AllCliqueProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, nil, &CliqueConfig{Period: 0, Epoch: 30000}, &EnergiConfig{HardforkRegistryProxyAddress: common.BigToAddress(big.NewInt(0x30D))}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0)} TestChainConfig = &ChainConfig{big.NewInt(1), big.NewInt(0), big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil, &EnergiConfig{HardforkRegistryProxyAddress: common.BigToAddress(big.NewInt(0x30D))}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0)} TestRules = TestChainConfig.Rules(new(big.Int)) )
var ( // GasTableHomestead contain the gas prices for // the homestead phase. GasTableHomestead = GasTable{ ExtcodeSize: 20, ExtcodeCopy: 20, Balance: 20, SLoad: 50, Calls: 40, Suicide: 0, ExpByte: 10, } // GasTableEIP150 contain the gas re-prices for // the EIP150 phase. GasTableEIP150 = GasTable{ ExtcodeSize: 700, ExtcodeCopy: 700, Balance: 400, SLoad: 200, Calls: 700, Suicide: 5000, ExpByte: 10, CreateBySuicide: 25000, } // GasTableEIP158 contain the gas re-prices for // the EIP155/EIP158 phase. GasTableEIP158 = GasTable{ ExtcodeSize: 700, ExtcodeCopy: 700, Balance: 400, SLoad: 200, Calls: 700, Suicide: 5000, ExpByte: 50, CreateBySuicide: 25000, } // GasTableConstantinople contain the gas re-prices for // the constantinople phase. GasTableConstantinople = GasTable{ ExtcodeSize: 700, ExtcodeCopy: 700, ExtcodeHash: 400, Balance: 400, SLoad: 200, Calls: 700, Suicide: 5000, ExpByte: 50, CreateBySuicide: 25000, } )
Variables containing gas prices for different ethereum phases.
var ( DifficultyBoundDivisor = big.NewInt(2048) // The bound divisor of the difficulty, used in the update calculations. GenesisDifficulty = big.NewInt(131072) // Difficulty of the Genesis block. MinimumDifficulty = big.NewInt(131072) // The minimum that the difficulty may ever be. DurationLimit = big.NewInt(13) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not. )
var DiscoveryV5Bootnodes = []string{}
DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the experimental RLPx v5 topic-discovery network.
var GoerliBootnodes = []string{}
GoerliBootnodes are the enode URLs of the P2P bootstrap nodes running on the Görli test network.
var MainnetBootnodes = []string{
"enode://466db8e4c21af2a6acb2e8c5a78669af9b880387b3019adc006659c060eb805dee078381a98f5b1709e4865dc2d37c8a91c3b467935c5b5c5094400c35e5acfb@95.217.71.192:39797",
"enode://de88ce59973d40c4e31ad933e934a08219874c92cc7bac6282efd416e0659737f737b2121ec8d22c951348776dff31716a56e14a1bebc25ecc994f3a77a9f5d5@167.172.43.193:39797",
"enode://f7846d4051a5d4280556c5bfd3e210f5d6c7664a09ae39c741611043f40567b74119467c1e6bcfcaa85cac65c611167c2fb5d8f030fd11210895e37059e8869b@167.172.47.96:39797",
"enode://7f01cb6bee7ae897e22c9018838b3a23687f34e6846023d09f18028aaf7f71ca74b5203f555c078410a98dbc01ba3d6eb33cbc37c9bc973aa9487d5c9a8574f1@178.62.9.104:39797",
"enode://743a2c4b13ee2a62f91f545f84a5846f5840475cd51170ac7d624b66c2e11ed22d69f1bc7bc60937e4d20107247dca25d927de820db7e6c020d914b1b942eca4@165.227.150.87:39797",
"enode://29a6d46982830f0e86514d675e6243e043ae398d20b6c738c1cda139dc721c1a46cc0b829e94c3f02185fbd1051e7672ad38d412294aab5cb497d4b4ce444253@143.198.44.143:39797",
"enode://e26044b2346a2d059812f4831e107f7c32dae22c4fb5fbe6de3cc8e13dc3204ee6451ba493ce22089bf926046ca2af3379fad50f73cbbecea6c12fb31fcd9675@188.166.176.102:39797",
"enode://a842f760d1191751e2a8fdbddcf318123b763ee60b56a85981ebcbb2ad92ca595435d14d23dc2229f16d1468eb7f133ea59ae7391af0de4fc34cab10b153d85e@46.101.216.189:39797",
"enode://6ca5a387cf81b7fb0a6a82496a08c4498b51b9f95df1fbc05e029e088a753b52b09ca0fb0d7c54d4b6c35f45488ada386f20a43609ed4e712b8f89fc125693ed@159.203.40.232:39797",
"enode://717e6c7ec012a907404dddf87b217c403103a145494e6ca07fb7ec05c388e8ff0266522d61eeab471e5a18599e2a79ab97e5aa1089900cecdd85edb8c1c52580@139.180.170.225:39797",
"enode://720cd795f6a6af4b5eed87865c2382db0c7aaf2560ad453193cd79784f281b27c9e8f1d6e2ff187487b8fe0d45ca2614d5fd94f0f3a39ca772a2d33a1237727d@64.62.206.82:39797",
"enode://5ff40136f14c93d0c4be08877b5c75c97639493abb8f293b6623ac358f5e8e45f591bd090b6e03af687d1758e8a03818770e9a087f5a7233fbfebf9a21465e3a@198.55.51.73:39797",
"enode://5bf271d5a0b45bb6baf97b00a287628aeeeacb524aa44805bc572857830b0999944f52e4d2e89a0504700da626fd45ecb447759f33b26b870d1ceec1e8ebb903@168.119.80.4:39797",
"enode://6158202ad0cf6e4373e63631447be7a7c1e6741f69142d728e32555022c9b4042dcf448ece7c22a305728fd8f3caa9823e2b813ed6f170d3271dd1fe28143954@188.40.21.224:39797",
"enode://856e3b8a63c42c9c7bcf63eb3f91702533e4f414e5320de50307703145bf4a38860396d1ce876327be70c7cde94464bba49fbd1b8b899e50c9dc00f59f2be604@136.243.142.35:39797",
"enode://958c92d1b71a54715bb5d705cdcd180634e83dd39d4791901720e4880d5de36b5b55b4e21044c2ef92dfbbad48a8bb3c239b42830d82d95bdb2c7239129ecfb5@139.59.162.145:39797",
"enode://7ca2c741f2e5ab0c1582c3702b8b08be60cb9d06dddfbcf7b547b1bcd80eb15307980dbf5d3b7000af8bb9f46a64dce5d5e0daf69732d31b46d5ea755a63b7d6@207.246.92.254:39797",
"enode://0733d41d4773ab8befbb9b677a4e804489dac288d6680029a0d9de3a43761868a31139e7d9115c4017bbe8f98d473e412d3c261735fe2f057c5982ea09e369be@144.91.85.82:39797",
"enode://56167ef675aa22db1e3583d6e7fb6e8ae3aafb8e1482b6a7c0f058b9c744ad97445c1e354955694c1d37dbe6215fb3e20bc880c3571a61f4d63f80c44c15a226@173.212.246.252:39797",
"enode://e6595e77fb08ff43a19d8c38a3b4e4219ba766113cb09b932025fd138909f87843e62ef4cd989e05abd6aefb06b7f6be260cdaa56cac4afcb776e8c18b23a891@165.232.77.92:39797",
"enode://f25b3d2459d1f8efdbbe5d1e4fee382b1e2d37274ad46f7356e9875aaf75f1d74b15208d15f7ee37d4d33f400a4455d4c324526d231baf4a295a355a6924dd3d@159.203.41.16:39797",
"enode://3355b0d99d325d9a05a13bd3e59e368ed1d3634a637c8eae973d3c8ff484df833c129d65c8159557593dd511f76b85fb661affd1b0660150ac91eb73909a250b@135.181.15.225:39797",
"enode://78a52ec9a2da94b7b6ca0b18ddaa4357a6d05ebf77144007e24b2482eaec87b9c6366430bf5e37cd71efda28f414cd69f90c5793f2c8edb46cddccd02e54d596@165.227.40.189:39797",
"enode://7f1a9ba7b6e2ad94685b8956747c09b506b1d5e5b6e70eeeeb69ec0da72d6387d156580282175276a2d28566bd395d52965a79a34ef5064c5ed2c478a5f0d81d@95.216.230.97:39797",
"enode://107608e59f72a7c14e2ceadbf3997c18fcd761abdadc62adb3b0765576ed3e54d760afeefa5121c732440b3e255b37232e46ee9ea1651373fc763d96f41ad852@141.94.204.218:39797",
"enode://6c731b898b4d382ba81e9435259e8e623aff79abd4c099857eeb2cbb6e69540ae1c53e6539fbdbb572a1bdbf9f5bce7fe92361b171a1d2a81c99e7fa1b45958a@136.243.29.193:39797",
"enode://b3a6d74530442aecfd694c0754f162aeb0f62e0196dc1f2f665b977f5de83b364105b4b09477fac25d6ffb36c5b38a1274f8e302b5fa4bbe1c9980e1cfbf268c@62.171.148.144:39797",
"enode://06456ae3017d0b5248e0b085300b06f7b90ef127eb22cc3d3cc3364fd21e481a3405a1348ef232371c4f621f17fe78feba1920b7a0f11b7494a35b062362c1f1@128.199.246.150:39797",
"enode://47698892ee12ec9a201a46aad8709e06397e34ec5791ffb7628d6264c5bd820c0f105e104541dde73fe13972b0b5966c8d8856b71c52be5775f3ebfa2db0c55e@93.104.211.4:39797",
"enode://740cd6fb7acc6cbe6239bb766408423ee7cdfa95f4db4309adf327d12c45662582a62d8103ac73ae228a71c50da7253389a8dcc923713d95690e126b333c729a@95.217.71.201:39797",
"enode://0848f411d53450c2bcf20b664fdebdad0df15706b282528f8b5480e655168200bc109712a25ddac475d59cd024c20e46cf91f4bea99aef1debcd139f5c752e83@188.40.205.0:39797",
"enode://9e2a35517c1fc44c1254c1401e88383908e3792484f5ee814750ac14bbdfd3947257f2920c1165c3ad342d8c1daae622391ba5bdf56cf07d63823b17004025f6@95.111.250.130:39797",
"enode://cc1fb8069c02a082b62ae6a436046f698af2f1dd4ad5068acd4daf1921f5ebf1683eb8f87825063c9238ebdf7872ed4c832fc0405042c3fef4d854c60be725d4@188.40.175.66:39797",
"enode://3284583075997ce15aa818192014c078e0efaeac54b63f8e5796383cbe9982889ad437a17631686016b69641cb3727316a218d3dcb3e103c56247b013ef01806@95.217.125.98:39797",
"enode://6cd4def9329f11bced11c3cb16c0aa9bf46a64a2b725f109c1b80f39f14d4d49547e4a2a30df6675353307148dbd131a5c55317c6275eb5ffa09ec18f05563c4@81.169.218.128:39797",
"enode://c9c70b6eba7452d96d2e5e0c3719870085be19248826ac6024191cc4741cd6e311442a4c94a8ed5cc5b912cbfc567385895726034fe7a68ff9a19b885e41ccdb@188.40.178.64:39797",
"enode://5efdd84b1f58ed15980be9e6f6c69b14ca5d9a6166759d26394b7e970f8c1f031bf88402d32e7033ab4bc18fb1af42a50ac37399ab39fc8215c4f7065c04f81d@188.40.182.192:39797",
"enode://ef3ea05b0a9fa3dcf17332c7e9c2620f44cd1413c39eb1aae415c53b38b3a14b771f15c7acc43c17319e504edd95f2d8e76d0af43ef11d9bce532e16778cd49e@188.40.163.4:39797",
"enode://dc78396faec66eebb73918578e05c830126d03c382aa6793a656f8994ba81bbc985a5f4aff34e9727d2ef576d00e20a39cd47865999afc8d209d3833cc5ec3ce@217.76.59.22:39797",
"enode://9895557b603c8057372f9352780db387d8fc128092c056f61f7d00aa14c54d843a0afe6facc91c6d5e69ae0acd93c21693e024b5915ad867a9822e0b14918a0d@176.9.210.2:39797",
"enode://9f708875c2d8f968837ed6191a274a75cc224ea6048ddbe59d1bfccbaa136efc14eee8bbdbc1a20f392490b013c77c42649a901d0ec2320d0a883d2b234f1019@188.40.190.32:39797",
"enode://fa40462952bea3e9df6de18e786a99bfe8ca168de2946350b93198b48041a4307ec438c01ab4cbc623b302fb0015fb8f2ea2fd0d771c79f3ec23393a72fc7e3f@95.217.71.195:39797",
"enode://4b75125ea283a52ee4b295fcabc936c0a9c5916a178e8b3e5de94106509b50081c0096d19efa8a1ac8eac8e9ac52ef1e73b334838e3efee8f9415d728758421d@136.243.115.130:39797",
"enode://87f989ee3646d96b03513fd351dd380ad4561b853a0d33a7e485a08894401c654efb76bb984be617e4a4c9dbea981560ed7f0af6200e3d1597a4414a2ebeb1bd@188.40.163.1:39797",
"enode://95444624fc672dc1b3f47ee251c1a09e86556b9b97748f02a1860be507ef1f5c2c0010cdc5b284cf70f26e286e8ea4c61fca1e79f1c2de8775f4ce81083cf5f1@188.40.205.4:39797",
"enode://c43f5bc01223e828a83ffc4d1e5940d1f95c66104a8bbb3cbc54384f3f8a76c61c0da276a0f8681956d448f6698eac8ca10b2c83b3c414289481a23f2803b926@62.171.134.147:39797",
"enode://d9195f58ec353f23b331383bb2c04ca1f51af1982d978003aecd432c4d150e873144861b5f1269f1a397e94d64b0da08a15f7e65d1f0ad9a572c310a3ecbaecf@54.36.98.21:39797",
"enode://0c7a55ed2a83ec206b4b2e280ab00fc8fecb00a911b1b9ab86a9465accbabaf9e7800bfeb990cde94158614410740205923ec8ed94b378480daf38cde0b66347@54.36.98.240:39797",
"enode://7ac3b009f762d8212a61a3f4a3850a3833bb040522d5cd847a084be69aa1275b2a087523874339626a85f4b6e6ce6a8dffb0504dbe30414f55ae5df35dadfa4f@54.36.98.32:39797",
"enode://dfefe8cf24f35eade89b499c83a137faf5bbe1801682f3544a9dedfff21c8cd61832376f16d67e5d8289635e5f4ce308bac9e6d1ab201fef3b2266ed806749d8@54.36.98.15:39797",
"enode://156d7915f885c5d84c9abada42a23646fbeb1a6b78b8c20a50633ce963328dd19b6c90fd2f8f2b3988a9a8ed65b26d1b54fc0d022a82e422ce5016174b3ff7eb@165.22.197.244:39797",
"enode://3164f1972589a8d65d5ed1f50621c9142dade770f7cdb80fd0f8da900e8d91b4d7ddea24d43ac942d76aa1b135e3d0f434f1b70e848ede1a01d0ea2f37c4e20c@143.198.230.32:39797",
"enode://3af3e3199b76c300b2ccca0938896e92927774cd92aa81f1f3cde3d550004e3ad59b73ffd5a884c9758320f68d0fa704c002e95e7924d66e14b1103931e0740f@136.243.115.131:39797",
"enode://a2422ddffb6b947ce2dc750466a2b9bc84e49e33640cc8647eed5ffa34f29e57962dcd4835f13fc730137123cb8f13b78e921e5e328c8fda5a887a23a54e58d3@174.138.20.253:39797",
"enode://e2f8b6f03137dec4bf7c20adff55ba34a8612975cb878d67eb4a5d8d6b34bc93fafbe1021c0bf7327139375ad23d8faf27abc0b8fce8316d684193008694d88b@146.190.226.248:39797",
"enode://38f5c053f32f231e5abcddb35a1206fd27cce93ec30a8a590eb29cb607917a4489a2288a2d16c04b272ccd372c437af7520b1ea8f9b9d8e1bd2ddcdee400806c@188.40.182.198:39797",
"enode://e0bfc9b46875f0ce5cce7bb21c2ea38fd3c2b26e3bd67df7bec8c5261db4f66b7f0c6c7775b3064c6d0002bac0874fc36fd2a21c743853750a432171de9df21b@188.40.182.195:39797",
"enode://07aab20c142ba4de644dc420af3df53905648d30a92d8f0d016bed45e0a4aaa52a247e8c43ac3e4dd542b334c3c45a266c0f29e0e4cf5de23cc1ee00ddc0cf75@188.40.205.3:39797",
"enode://912074620698d34b402f4cbb493f90e014ad8e4425d91472be47244719649985859076623a3e8bc74eb58de844cfabe7856c0cf4fb1ba89c8da0382ba9fb1ff2@134.122.113.53:39797",
"enode://8399bdb8c64df855d54623933163bb5639653eb2971a276de1e0ea3fad5f6e1d093df244114f7440d58a71c36d9a3c267422697d95823f0bf0ba1bfd29d43eba@136.243.29.192:39797",
"enode://f507788ca9c45e93d6b7b64095cf0a5e98008925fcfb56e2fea999623ba0704d1bb647377ab043ede876d61ed96325c9760ad77e52e9c575b32528a4923af451@37.221.199.67:39797",
"enode://8657f8626f7001056ced1bcceffaf2e7cf4c3d986d921c891e153131e19f6751c3c56ccad5347f925617911d53026a4914847b5919024c9535678da429e76b29@176.9.210.7:39797",
"enode://62267d7a3854ba2819fd6a68b96afab60c6e63ec849e379338464373ae011b36e206b94dbb23b0769b17fab7951c9131fc34f340e7e7d41ac203ab86c247ae52@136.243.29.195:39797",
"enode://909a0f6b22c11b407aeee4323420941efdad303841835bf144cb0e6fa11d059f51c388eeafeb84c94ae330c5e600f129f8217eb9ce3905eda222c38ac72d5a03@109.123.247.166:39797",
"enode://869ef96f262edd339f0b08f858e16ab24b122f2bf7e43be760711305e936dd530180daaa78ba30f30611eaeb383d8e8168200ca1d0cc1fedd357acf5fa5b4825@89.117.51.88:39797",
"enode://14ccee2b0ec1e2539a0ab176713fb4d4f911495966bec8c347b994f1ed4f5ff5168e6b5d51ace7ebae37b61f019f87e041be935c73a85d55a7a5ff377575a8fd@217.76.58.170:39797",
"enode://cf0b0c6ea5f88bdec984992c0c63d829530bb9324c97f875619886ed66718f6062370834e8339476f41358884ad8351705d3f5792e6e8c6c7b089ba4bb294b9c@38.242.158.77:39797",
"enode://7a9640265a9f248f81e533162dcd7d1a14dc4722e2b80464b269da6b279f69883985e3fd2a68411820347a9a8cc32cf0aff627b26d48c323390460e2907d73ba@217.76.53.14:39797",
"enode://da847641b99159925da361a3911d7fc4a1dde41124c42de2aa2291fc0f234846fa5f53e7fc73151cc5819f42b4ce31bf621d3b2d966f8a7c2f00959f23b112c7@217.76.53.200:39797",
"enode://ef6ffa42026d57e2c8bc9be2f975cd63b22e921f0487fe0fd57124b1c4e49a43d106eeeb4d53c959dca86fec9dbc98660318e188a3c07d0adecfcd3880a7f72a@5.104.82.112:39797",
"enode://cf13f424855095009f3440cf74f689de1e3e44a3f7b603824fcbf37159407385ba78f0958180d017b40b29e3ad1bb2aede00b56f622d9e76992431e935db0463@66.94.113.8:39797",
"enode://783eeb99e2a04cd6d93218e85e47a4fbcc8f8785ead42886e57faa5a5719f208d3f6ece54402e98897f3e4f63a2af178a89e397377346c3d240f0cf59dd407f4@154.53.57.65:39797",
"enode://5ad7f0c20a9466e11fee9c5767471cef9cb7e7bb434c4c29ebe205de1c45936b695314fd1a01652d72da9b85988e3a31f3eda639a9163146fd5189a214cd9306@154.53.38.149:39797",
"enode://8480b12e838ad9695bc1b09afca48b91ae78e745afd4c482bb9907088b896b07e5691beb25e731752988316203f29b0e9a727b22f2ce87533720493bc598e639@154.53.38.150:39797",
"enode://462a6a08ba311aff6ab90d2bdf6a2b68e1786302d9601c04804915c39e38ce356b4c9ae96d9fd6bcb0b9e3cb1bbc8a6359b779ec3387eb3a3b70b017f0d3d4e5@154.53.38.151:39797",
"enode://0de1a2ed27f36d3df77fc14da09cb392517563ef4a030e96fe9283063c3ddf9da0aaecca44cfa2b33842fa0c0892de9ca0941c07e2ccf782f563a2cb9113d505@158.220.87.88:39797",
"enode://81bc4e43e3243143bf841f138c5d78fb1d41c673d46df928246f539074cea507b5681ae2945501435b9b437b8304458b5c3fc801bbe8dc6b63749c3b09b2d5da@158.220.87.90:39797",
"enode://1848a9e4a90b7cfca04423c2d9a8225889daa2f75b8a0139965079d8d0c192e9c663ef03892f86ddee8e8296a2a4f5b75fb34152306f80bd690b45db119bf983@158.220.87.94:39797",
"enode://19ddf653a24dc42a106a0deb2303323adafa5a2ba14cf3a17abf84022a9b0ddb87e5ff0ca050b5c8f65f29299cc84f97b1ff48a2688c1b24c8ba07029db6b99e@158.220.87.87:39797",
"enode://c2e6d81928cbc20e499f016147ba07e3357bb9c6aadfbfdd9b2097ba91ce832f263e3f758753b28f295bcb8def897ea5e86c198ce77748bbb2d87112f84542e2@194.233.83.179:39797",
"enode://105f2bae7fabd9d7ae62a2ee207152c819471431f84641d2d8e10c0dbeb8ae9b8519102b7cfc41a4b25d2f811917923f35b1fc9e0b23d621ee66cb97f1644caa@194.233.88.139:39797",
"enode://884e60e574da00528c2f76b2011b0120fa704db29ee02cfc7677ffaf1add4a67ba58e059e33bc2b6fe491a9c07302d248bd330540d553e47aa3f8a8429fb7d8e@194.233.88.190:39797",
"enode://aea612c6eb38067a5b4125de1dcbd4b007c07eff50d6b2a2bf84e632cc66df68d0db8777a05aa03f7c275eda958c6bace7c243933de8d46f6c948aa15c94efd8@194.233.89.75:39797",
"enode://7e78042fa0d7e7b8cfd7ca8d558e62ca6a3ba365c8a61663ed8e83f2918c504be5e30984b9496231fb34119a671fbdb9e9e90ef80e6284531ee09d79c8b5f840@194.233.90.69:39797",
"enode://a47c6318aeeb41dc9d6017175c0ae9374d935f8423f17db1b5b24e1f64b09d3c8eee4f4d4284a03516060bc1d5703f94f0eba0f435d32e6bdca12012a61934ea@194.233.90.107:39797",
"enode://a4acabac9646c573e141806bbed8101fa538c2d0417f03552d9fb1242de5f35b6a9fb8d43a456f929d9cbb641b4fb0be5274b653569addb9206553fd2d29faf4@194.233.91.68:39797",
"enode://2fd10acf9a2b34376a69c121bf3274a9301183adb312dc7d881ccb0a22e473e92c97d0e9071dcc2edfd420a95109fcb3aea33a65f32c44c1d81090fc52ff8b08@62.72.45.222:39797",
"enode://51870c3b5f41a7fa9a3f4bb335e3c2913f7aae19042f052e68d0375f839c8dc4899c6da522cd859857856bd1378fcdb28c58491ebf4fec4ffc2c8c11f5c8aa96@62.72.46.27:39797",
"enode://c7f43d1f63dca37e0e9ad41c81f13d73bfb12eb78e106601bc24fd0fff34d2e5372bcbe75c027afbe30cb099150985a27a0903ad0582cce4e888eb85690a2e61@62.72.46.32:39797",
"enode://c7c411f1bd5182dda34752af60a61066a4a66d7ccafb0c95f45c0cc31708a16584997d990774f144c96cfd0a947ca310e446725979c9469374317421e7f870a4@62.72.46.38:39797",
"enode://d02d346ef0f0e183c5d92b367c140b1c0258860ccb8ff92a87f08ed9c8d3e55e13184aa64389003b905af2c645f2818ef09dbb06349e30364a39a7101ae4cbb2@62.72.46.39:39797",
"enode://cba1d0b2672bee647f7a3d367e7fa0a95837cb15d0dababce1f4087c6ccb0967b9410903192d076cedf04dada557d55f9c4f471e2556d13beea19efd5d14d3da@62.72.46.36:39797",
"enode://feb919e5c510bf14b3c1c3ef0856fb2d8eaf2b7deb8b5c1b0b6dc61e635aa7e1ee334a607bceefe2ea1febafdeb21300e8a28fd9fb6ecff69589b64520837060@154.12.232.79:39797",
"enode://127a63671793f073523a4a275972c07042eccca1db420f3f6bbc67dae9f1e10517192b3133c7a8ec2bf5276733231c05a89a5173a46c897834b2b6cfcd5f698e@154.12.232.112:39797",
"enode://f802fb4a5bf88a7169b64e5f3b54b8ad18be0a2fa073ae88a98f520c9e4e8a25e39ed1c35d9385810fd75ac2c2f8292c8b9b682c1ef6dbe85da7477ed2133097@154.12.232.140:39797",
"enode://5fbf9616e7d4fd73266a26e846da61d89b4b864f05c38dca3ecbf21e68530cbc885ca7bd077cc2a902e8f712d750c0598e1cad5a5573313215c44443645a00f9@154.12.232.161:39797",
"enode://06da74bac22b7595713f9daf58b9c4b61251d0153f811e0cffc9195998d842d65f4e09e48e8a01330d1c4faefdd809af986462a1af75e25df4245545391b22a9@154.12.232.166:39797",
"enode://69815730533eacf0b18bc6752168a3e379f67e800a5c89a584766feeb9439bd62980d4b23d914b1ffb18e5d17458e434a5fe5b89e4ac6b7ad9c20e28438481cf@154.12.232.227:39797",
"enode://51b41af4d2a5a69fa7901444813f3057a7ca61a8150871c19196b49acf4223e9236d64004e5dc7d04270ae9eadd8c1ee0585b77d816c48928c6ecf5ce29524b3@154.12.232.228:39797",
"enode://b6b7383b52893f43b5451dfa4f76a3a272d1aa410358540e2f0065ab7bac4c74a83abaa2722b4c0fb3d8c45a9c6d46c64a5e81df3198428f33276ba64a81b0a4@154.12.232.229:39797",
}
MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the main Ethereum network.
var RinkebyBootnodes = []string{}
RinkebyBootnodes are the enode URLs of the P2P bootstrap nodes running on the Rinkeby test network.
var TestnetBootnodes = []string{
"enode://a98599cc6e712c97dfd1542ab6e90a47853fabe5a8623b2d752449cd683464d6730d5e58999a6cf874c29c34d531d9e5607b20f3ea286ad37ef7d1fdd1bf34dd@154.26.139.253:49797",
"enode://c1e36d7e879d7c151bc6916086de5b5ab5040db8c537aad796d19a20b515db9e5c4b9325de40c68daa62e5776c254488e7f0e5a0c00f19b60b84b8cbb59d2ab3@5.104.82.113:49797",
"enode://845162ce24c4d7ac6002126e90cdfa8193f8ea37e599771207e9bcdd8ff916691963fe90e8f452038f96aa0b9efc5a2c98c863258725040e3f1f52576e25452c@154.53.36.179:49797",
"enode://e07d2adb87530bf59159286a9f58a61737bb8994cfaa404aa4bab227dbf4d186f36d90c17af6fca3ab4bbdd37e6caa9e342a86c3857b11c1fb045415ea78b043@154.12.246.160:49797",
"enode://350fa8da6df442d6c8a579777e9d67929cc29227b0d09195c2a2ebeb3f8e19569a7a2118dd8d1f75f365d6f40590806cad00a93792211aa07ded38fcd22dbc1c@154.26.155.62:49797",
"enode://2e24cf5f5f6af4f7d2f407276f31bdbc620710c028e1e859e82d83cc3e7e254e5af2f4a1d4f2b67429890d06b7b228060f9a5cdca4e549d3deb785b6a849a235@95.179.193.170:49797",
}
TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the Ropsten test network.
var TrustedCheckpoints = map[common.Hash]*TrustedCheckpoint{}
TrustedCheckpoints associates each known checkpoint with the genesis hash of the chain it belongs to.
var Version = func() string { return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch) }()
Version holds the textual version string.
var VersionWithMeta = func() string { v := Version if VersionMeta != "" { v += "-" + VersionMeta } return v }()
VersionWithMeta holds the textual version string including the metadata.
Functions ¶
func ArchiveVersion ¶
ArchiveVersion holds the textual version string used for Geth archives. e.g. "1.8.11-dea1ce05" for stable releases, or
"1.8.13-unstable-21c059b6" for unstable releases
func VersionWithCommit ¶
Types ¶
type ChainConfig ¶
type ChainConfig struct { ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection HomesteadBlock *big.Int `json:"homesteadBlock,omitempty"` // Homestead switch block (nil = no fork, 0 = already homestead) // EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) EIP150Block *big.Int `json:"eip150Block,omitempty"` // EIP150 HF block (nil = no fork) EIP150Hash common.Hash `json:"eip150Hash,omitempty"` // EIP150 HF hash (needed for header only clients as only gas pricing changed) EIP155Block *big.Int `json:"eip155Block,omitempty"` // EIP155 HF block EIP158Block *big.Int `json:"eip158Block,omitempty"` // EIP158 HF block ByzantiumBlock *big.Int `json:"byzantiumBlock,omitempty"` // Byzantium switch block (nil = no fork, 0 = already on byzantium) ConstantinopleBlock *big.Int `json:"constantinopleBlock,omitempty"` // Constantinople switch block (nil = no fork, 0 = already activated) PetersburgBlock *big.Int `json:"petersburgBlock,omitempty"` // Petersburg switch block (nil = same as Constantinople) EWASMBlock *big.Int `json:"ewasmBlock,omitempty"` // EWASM switch block (nil = no fork, 0 = already activated) // Various consensus engines Ethash *EthashConfig `json:"ethash,omitempty"` Clique *CliqueConfig `json:"clique,omitempty"` Energi *EnergiConfig `json:"energi,omitempty"` // SuperBlockCycle defines a period whose end results into a super block. // A superblock sends a lump sum reward to the treasury. During a superblock // no masternode reward that is sent out. SuperblockCycle *big.Int `json:"superblockCycle"` // MNRequireValidation defines the minimum number of active announced MN that // disable the invalidations check when checking if one of the active announced // MN should be rewarded. MNRequireValidation *big.Int `json:"mnRequireValidation"` // MNValidationPeriod maximum amount of time in seconds after which a MN can // possibly be invalidated. MNValidationPeriod *big.Int `json:"mnValidationPeriod"` // MNCleanupPeriod defines the waiting time after which inactive MN are // automatically denounced & dropped from the list of MNs expecting a reward. MNCleanupPeriod *big.Int `json:"mnCleanupPeriod"` // MNEverCollateral minimum MN collateral shown to the users on stats endpoint. MNEverCollateral *big.Int `json:"mnEverCollateral"` // MNRewardsPerBlock defines the fraction of the total MN reward per block share // payable to the MN holding the minimum amount of collateral. MNRewardsPerBlock *big.Int `json:"mnRewardsPerBlock"` // HFFinalizationPeriod is the number of blocks after the hardfork block, // within which a given hardfork must be finalized and made immutable or // rendered invalid and editable. HFFinalizationPeriod *big.Int `json:"hfFinalizationPeriod"` }
ChainConfig is the core config which determines the blockchain settings.
ChainConfig is stored in the database on a per block basis. This means that any network, identified by its genesis block, can have its own set of configuration options.
func (*ChainConfig) CheckCompatible ¶
func (c *ChainConfig) CheckCompatible(newcfg *ChainConfig, height uint64) *ConfigCompatError
CheckCompatible checks whether scheduled fork transitions have been imported with a mismatching chain configuration.
func (*ChainConfig) GasTable ¶
func (c *ChainConfig) GasTable(num *big.Int) GasTable
GasTable returns the gas table corresponding to the current phase (homestead or homestead reprice).
The returned GasTable's fields shouldn't, under any circumstances, be changed.
func (*ChainConfig) IsByzantium ¶
func (c *ChainConfig) IsByzantium(num *big.Int) bool
IsByzantium returns whether num is either equal to the Byzantium fork block or greater.
func (*ChainConfig) IsConstantinople ¶
func (c *ChainConfig) IsConstantinople(num *big.Int) bool
IsConstantinople returns whether num is either equal to the Constantinople fork block or greater.
func (*ChainConfig) IsEIP150 ¶
func (c *ChainConfig) IsEIP150(num *big.Int) bool
IsEIP150 returns whether num is either equal to the EIP150 fork block or greater.
func (*ChainConfig) IsEIP155 ¶
func (c *ChainConfig) IsEIP155(num *big.Int) bool
IsEIP155 returns whether num is either equal to the EIP155 fork block or greater.
func (*ChainConfig) IsEIP158 ¶
func (c *ChainConfig) IsEIP158(num *big.Int) bool
IsEIP158 returns whether num is either equal to the EIP158 fork block or greater.
func (*ChainConfig) IsEWASM ¶
func (c *ChainConfig) IsEWASM(num *big.Int) bool
IsEWASM returns whether num represents a block number after the EWASM fork
func (*ChainConfig) IsHomestead ¶
func (c *ChainConfig) IsHomestead(num *big.Int) bool
IsHomestead returns whether num is either equal to the homestead block or greater.
func (*ChainConfig) IsPetersburg ¶
func (c *ChainConfig) IsPetersburg(num *big.Int) bool
IsPetersburg returns whether num is either - equal to or greater than the PetersburgBlock fork block, - OR is nil, and Constantinople is active
func (*ChainConfig) Rules ¶
func (c *ChainConfig) Rules(num *big.Int) Rules
Rules ensures c's ChainID is not nil.
func (*ChainConfig) String ¶
func (c *ChainConfig) String() string
String implements the fmt.Stringer interface.
type CliqueConfig ¶
type CliqueConfig struct { Period uint64 `json:"period"` // Number of seconds between blocks to enforce Epoch uint64 `json:"epoch"` // Epoch length to reset votes and checkpoint }
CliqueConfig is the consensus engine configs for proof-of-authority based sealing.
func (*CliqueConfig) String ¶
func (c *CliqueConfig) String() string
String implements the stringer interface, returning the consensus engine details.
type ConfigCompatError ¶
type ConfigCompatError struct { What string // block numbers of the stored and new configurations StoredConfig, NewConfig *big.Int // the block number to which the local chain must be rewound to correct the error RewindTo uint64 }
ConfigCompatError is raised if the locally-stored blockchain is initialised with a ChainConfig that would alter the past.
func (*ConfigCompatError) Error ¶
func (err *ConfigCompatError) Error() string
type EnergiConfig ¶
type EnergiConfig struct { BackboneAddress common.Address `json:"backboneAddress"` MigrationSigner common.Address `json:"migrationSigner"` EBISigner common.Address `json:"ebiSigner"` CPPSigner common.Address `json:"cppSigner"` HFSigner common.Address `json:"hfSigner"` HardforkRegistryProxyAddress common.Address `json:"hfProxyAddress"` }
EnergiConfig is the consensus engine config for proof-of-stake based sealing.
func (*EnergiConfig) String ¶
func (*EnergiConfig) String() string
String implements the stringer interface, returning the consensus engine details.
type EthashConfig ¶
type EthashConfig struct{}
EthashConfig is the consensus engine configs for proof-of-work based sealing.
func (*EthashConfig) String ¶
func (c *EthashConfig) String() string
String implements the stringer interface, returning the consensus engine details.
type GasTable ¶
type GasTable struct { ExtcodeSize uint64 ExtcodeCopy uint64 ExtcodeHash uint64 Balance uint64 SLoad uint64 Calls uint64 Suicide uint64 ExpByte uint64 // CreateBySuicide occurs when the // refunded account is one that does // not exist. This logic is similar // to call. May be left nil. Nil means // not charged. CreateBySuicide uint64 }
GasTable organizes gas prices for different ethereum phases.
type Rules ¶
type Rules struct { ChainID *big.Int IsHomestead, IsEIP150, IsEIP155, IsEIP158 bool IsByzantium, IsConstantinople, IsPetersburg bool }
Rules wraps ChainConfig and is merely syntactic sugar or can be used for functions that do not have or require information about the block.
Rules is a one time interface meaning that it shouldn't be used in between transition phases.
type TrustedCheckpoint ¶
type TrustedCheckpoint struct { Name string `json:"-"` SectionIndex uint64 `json:"sectionIndex"` SectionHead common.Hash `json:"sectionHead"` CHTRoot common.Hash `json:"chtRoot"` BloomRoot common.Hash `json:"bloomRoot"` }
TrustedCheckpoint represents a set of post-processed trie roots (CHT and BloomTrie) associated with the appropriate section index and head hash. It is used to start light syncing from this checkpoint and avoid downloading the entire header chain while still being able to securely access old headers/logs.