@@ -102,31 +102,10 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, pow pow.PoW, mux
102
102
log .Warn ("Wrote default ethereum genesis block" )
103
103
}
104
104
105
- 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 }) {
105
+ if bc .genesisBlock .Hash () == params . MainNetGenesisHash {
106
106
// add trusted CHT
107
- if config .DAOForkSupport {
108
- WriteTrustedCht (bc .chainDb , TrustedCht {
109
- Number : 637 ,
110
- Root : common .HexToHash ("01e408d9b1942f05dba1a879f3eaafe34d219edaeb8223fecf1244cc023d3e23" ),
111
- })
112
- } else {
113
- WriteTrustedCht (bc .chainDb , TrustedCht {
114
- Number : 523 ,
115
- Root : common .HexToHash ("c035076523faf514038f619715de404a65398c51899b5dccca9c05b00bc79315" ),
116
- })
117
- }
107
+ WriteTrustedCht (bc .chainDb , TrustedCht {Number : 805 , Root : common .HexToHash ("85e4286fe0a730390245c49de8476977afdae0eb5530b277f62a52b12313d50f" )})
118
108
log .Info ("Added trusted CHT for mainnet" )
119
- } else {
120
- 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 }) {
121
- // add trusted CHT for testnet
122
- WriteTrustedCht (bc .chainDb , TrustedCht {
123
- Number : 452 ,
124
- Root : common .HexToHash ("511da2c88e32b14cf4a4e62f7fcbb297139faebc260a4ab5eb43cce6edcba324" ),
125
- })
126
- log .Info ("Added trusted CHT for testnet" )
127
- } else {
128
- DeleteTrustedCht (bc .chainDb )
129
- }
130
109
}
131
110
132
111
if err := bc .loadLastState (); err != nil {
0 commit comments