diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-04-16 18:20:38 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-04-17 19:56:58 +0800 |
commit | d8787230faa07e078a183765271313a7d2c6bdf2 (patch) | |
tree | d31d955dd0cc0b44a7ba5a9ee0097f8e148e0db5 /params | |
parent | cdae1c59abc32f85debfa29577fbf1ed036ebf73 (diff) | |
download | go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.tar go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.tar.gz go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.tar.bz2 go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.tar.lz go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.tar.xz go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.tar.zst go-tangerine-d8787230faa07e078a183765271313a7d2c6bdf2.zip |
eth, les, light: enforce CHT checkpoints on fast-sync too
Diffstat (limited to 'params')
-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{ |