diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-04-17 20:47:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 20:47:54 +0800 |
commit | 4bcc0a37ab70cb79b16893556cffdaad6974e7d8 (patch) | |
tree | 13a20867c5df35d41655991195e92bd1e5c25de0 /params/config.go | |
parent | cdae1c59abc32f85debfa29577fbf1ed036ebf73 (diff) | |
parent | b5f92e66c6df3594430ced80334d0217ddb9ec34 (diff) | |
download | go-tangerine-1.8.27.tar.gz go-tangerine-1.8.27.tar.zst go-tangerine-1.8.27.zip |
Merge pull request #19473 from karalabe/geth-1.8.27v1.8.27
[1.8.27 backport] eth, les, light: enforce CHT checkpoints on fast-sync too
Diffstat (limited to 'params/config.go')
-rw-r--r-- | params/config.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/params/config.go b/params/config.go index 254508c0a..c59c748ac 100644 --- a/params/config.go +++ b/params/config.go @@ -31,6 +31,15 @@ var ( GoerliGenesisHash = common.HexToHash("0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a") ) +// TrustedCheckpoints associates each known checkpoint with the genesis hash of +// the chain it belongs to. +var TrustedCheckpoints = map[common.Hash]*TrustedCheckpoint{ + MainnetGenesisHash: MainnetTrustedCheckpoint, + TestnetGenesisHash: TestnetTrustedCheckpoint, + RinkebyGenesisHash: RinkebyTrustedCheckpoint, + GoerliGenesisHash: GoerliTrustedCheckpoint, +} + var ( // MainnetChainConfig is the chain parameters to run a node on the main network. MainnetChainConfig = &ChainConfig{ |