From 2072c26a96badbe45d6df56a4cd68ffd1b6fb12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 16 Nov 2018 17:58:24 +0200 Subject: cmd, core, params: add support for Goerli (cherry picked from commit b0ed083ead2d58cc25754eacdb48046eb2bc81cb) --- params/config.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'params/config.go') 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. // -- cgit v1.2.3