From d8787230faa07e078a183765271313a7d2c6bdf2 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Tue, 16 Apr 2019 13:20:38 +0300 Subject: eth, les, light: enforce CHT checkpoints on fast-sync too --- params/config.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'params/config.go') 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{ -- cgit