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/config.go | |
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/config.go')
-rw-r--r-- | params/config.go | 27 |
1 files changed, 27 insertions, 0 deletions
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. // |