diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-11-16 23:58:24 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-19 16:53:47 +0800 |
commit | 2072c26a96badbe45d6df56a4cd68ffd1b6fb12e (patch) | |
tree | 8dbd7ffdecc723250f439faf32bb08da2ce27bf0 /params | |
parent | 4da209290831720b0f61754b92dabefd5cb35b6d (diff) | |
download | dexon-2072c26a96badbe45d6df56a4cd68ffd1b6fb12e.tar.gz dexon-2072c26a96badbe45d6df56a4cd68ffd1b6fb12e.tar.zst dexon-2072c26a96badbe45d6df56a4cd68ffd1b6fb12e.zip |
cmd, core, params: add support for Goerli
(cherry picked from commit b0ed083ead2d58cc25754eacdb48046eb2bc81cb)
Diffstat (limited to 'params')
-rw-r--r-- | params/bootnodes.go | 14 | ||||
-rw-r--r-- | params/config.go | 27 |
2 files changed, 41 insertions, 0 deletions
diff --git a/params/bootnodes.go b/params/bootnodes.go index c7190ae67..bdaa4a18c 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -47,6 +47,20 @@ var RinkebyBootnodes = []string{ "enode://b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6@159.89.28.211:30303", // AKASHA } +// GoerliBootnodes are the enode URLs of the P2P bootstrap nodes running on the +// Görli test network. +var GoerliBootnodes = []string{ + // Upstrem bootnodes + "enode://011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a@51.141.78.53:30303", + "enode://176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b@13.93.54.137:30303", + "enode://46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291@94.237.54.114:30313", + "enode://c1f8b7c2ac4453271fa07d8e9ecf9a2e8285aa0bd0c07df0131f47153306b0736fd3db8924e7a9bf0bed6b1d8d4f87362a71b033dc7c64547728d953e43e59b2@52.64.155.147:30303", + "enode://f4a9c6ee28586009fb5a96c8af13a58ed6d8315a9eee4772212c1d4d9cebe5a8b8a78ea4434f318726317d04a3f531a1ef0420cf9752605a562cfe858c46e263@213.186.16.82:30303", + + // Ethereum Foundation bootnode + "enode://573b6607cd59f241e30e4c4943fd50e99e2b6f42f9bd5ca111659d309c06741247f4f1e93843ad3e8c8c18b6e2d94c161b7ef67479b3938780a97134b618b5ce@52.56.136.200:30303", +} + // DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the // experimental RLPx v5 topic-discovery network. var DiscoveryV5Bootnodes = []string{ diff --git a/params/config.go b/params/config.go index 8bd3642aa..44b2ffeba 100644 --- a/params/config.go +++ b/params/config.go @@ -109,6 +109,33 @@ var ( BloomRoot: common.HexToHash("0xcf74ca2c14e843b366561dab4fc64237bf6bb335119cbc97d723f3b501863470"), } + // GoerliChainConfig contains the chain parameters to run a node on the Görli test network. + GoerliChainConfig = &ChainConfig{ + ChainID: big.NewInt(5), + HomesteadBlock: big.NewInt(0), + DAOForkBlock: nil, + DAOForkSupport: true, + EIP150Block: big.NewInt(0), + EIP155Block: big.NewInt(0), + EIP158Block: big.NewInt(0), + ByzantiumBlock: big.NewInt(0), + ConstantinopleBlock: big.NewInt(0), + PetersburgBlock: big.NewInt(0), + Clique: &CliqueConfig{ + Period: 15, + Epoch: 30000, + }, + } + + // GoerliTrustedCheckpoint contains the light client trusted checkpoint for the Görli test network. + GoerliTrustedCheckpoint = &TrustedCheckpoint{ + Name: "goerli", + SectionIndex: 0, + 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. // |