aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-04-16 18:20:38 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-04-17 18:16:15 +0800
commit38f6b8563828e089f1445bc703662e3ec4716fb9 (patch)
treee45588e5dce9994a177188e01b5a427a84c1220b /params
parent78d90c47f753d68c340a970f59338db91a465470 (diff)
downloadgo-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.tar
go-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.tar.gz
go-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.tar.bz2
go-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.tar.lz
go-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.tar.xz
go-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.tar.zst
go-tangerine-38f6b8563828e089f1445bc703662e3ec4716fb9.zip
eth, les, light: enforce CHT checkpoints on fast-sync too
Diffstat (limited to 'params')
-rw-r--r--params/config.go9
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{