aboutsummaryrefslogtreecommitdiffstats
path: root/light/lightchain.go
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 19:56:58 +0800
commitd8787230faa07e078a183765271313a7d2c6bdf2 (patch)
treed31d955dd0cc0b44a7ba5a9ee0097f8e148e0db5 /light/lightchain.go
parentcdae1c59abc32f85debfa29577fbf1ed036ebf73 (diff)
downloadgo-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 'light/lightchain.go')
-rw-r--r--light/lightchain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/lightchain.go b/light/lightchain.go
index 977f497a7..c9143c05f 100644
--- a/light/lightchain.go
+++ b/light/lightchain.go
@@ -100,7 +100,7 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, engine consensus.
if bc.genesisBlock == nil {
return nil, core.ErrNoGenesis
}
- if cp, ok := trustedCheckpoints[bc.genesisBlock.Hash()]; ok {
+ if cp, ok := params.TrustedCheckpoints[bc.genesisBlock.Hash()]; ok {
bc.addTrustedCheckpoint(cp)
}
if err := bc.loadLastState(); err != nil {