diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-03-14 23:02:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 23:02:56 +0800 |
commit | dc4c59d42b793414833c10b91c2902e971de8477 (patch) | |
tree | 9baf92045f1b50d75d887aeaa8aedb851c54d824 /light | |
parent | f3579f6460ed90a29cca77ffcbcd8047427b686b (diff) | |
parent | 0a01f3f607f6b973fc9713bc25d5e7de22fbfe96 (diff) | |
download | go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.tar go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.tar.gz go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.tar.bz2 go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.tar.lz go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.tar.xz go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.tar.zst go-tangerine-dc4c59d42b793414833c10b91c2902e971de8477.zip |
Merge pull request #3779 from zsfelfoldi/cht-update
light: added new CHT
Diffstat (limited to 'light')
-rw-r--r-- | light/lightchain.go | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index a45022e81..4370dc0fc 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -102,31 +102,10 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, pow pow.PoW, mux log.Warn("Wrote default ethereum genesis block") } - if bc.genesisBlock.Hash() == (common.Hash{212, 229, 103, 64, 248, 118, 174, 248, 192, 16, 184, 106, 64, 213, 245, 103, 69, 161, 24, 208, 144, 106, 52, 230, 154, 236, 140, 13, 177, 203, 143, 163}) { + if bc.genesisBlock.Hash() == params.MainNetGenesisHash { // add trusted CHT - if config.DAOForkSupport { - WriteTrustedCht(bc.chainDb, TrustedCht{ - Number: 637, - Root: common.HexToHash("01e408d9b1942f05dba1a879f3eaafe34d219edaeb8223fecf1244cc023d3e23"), - }) - } else { - WriteTrustedCht(bc.chainDb, TrustedCht{ - Number: 523, - Root: common.HexToHash("c035076523faf514038f619715de404a65398c51899b5dccca9c05b00bc79315"), - }) - } + WriteTrustedCht(bc.chainDb, TrustedCht{Number: 805, Root: common.HexToHash("85e4286fe0a730390245c49de8476977afdae0eb5530b277f62a52b12313d50f")}) log.Info("Added trusted CHT for mainnet") - } else { - if bc.genesisBlock.Hash() == (common.Hash{12, 215, 134, 162, 66, 93, 22, 241, 82, 198, 88, 49, 108, 66, 62, 108, 225, 24, 30, 21, 195, 41, 88, 38, 215, 201, 144, 76, 186, 156, 227, 3}) { - // add trusted CHT for testnet - WriteTrustedCht(bc.chainDb, TrustedCht{ - Number: 452, - Root: common.HexToHash("511da2c88e32b14cf4a4e62f7fcbb297139faebc260a4ab5eb43cce6edcba324"), - }) - log.Info("Added trusted CHT for testnet") - } else { - DeleteTrustedCht(bc.chainDb) - } } if err := bc.loadLastState(); err != nil { |