diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-12 15:59:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 15:59:01 +0800 |
commit | ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f (patch) | |
tree | 0c38c859deda066f0bc3e30f2ee785b7931789e3 | |
parent | c8e70186a64b50d2ff23a9c79a08f731d3f72205 (diff) | |
parent | 7a7f6a4f29c7d30d861eb6b9c92374d370ce87cd (diff) | |
download | dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.tar dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.tar.gz dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.tar.bz2 dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.tar.lz dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.tar.xz dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.tar.zst dexon-ecca2c3c1b0f91994a1fc228b48a5aedfbd1db2f.zip |
Merge pull request #15129 from zsfelfoldi/cht1040
light: new CHTs for mainnet and ropsten
-rw-r--r-- | light/lightchain.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index 3a763fc90..4c877a771 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -97,9 +97,14 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, engine consensus. } if bc.genesisBlock.Hash() == params.MainnetGenesisHash { // add trusted CHT - WriteTrustedCht(bc.chainDb, TrustedCht{Number: 805, Root: common.HexToHash("85e4286fe0a730390245c49de8476977afdae0eb5530b277f62a52b12313d50f")}) + WriteTrustedCht(bc.chainDb, TrustedCht{Number: 1040, Root: common.HexToHash("bb4fb4076cbe6923c8a8ce8f158452bbe19564959313466989fda095a60884ca")}) log.Info("Added trusted CHT for mainnet") } + if bc.genesisBlock.Hash() == params.TestnetGenesisHash { + // add trusted CHT + WriteTrustedCht(bc.chainDb, TrustedCht{Number: 400, Root: common.HexToHash("2a4befa19e4675d939c3dc22dca8c6ae9fcd642be1f04b06bd6e4203cc304660")}) + log.Info("Added trusted CHT for ropsten testnet") + } if err := bc.loadLastState(); err != nil { return nil, err |