Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d8e2e9a4
Commit
d8e2e9a4
authored
Nov 13, 2016
by
Zsolt Felfoldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
light: updated CHTs for mainnet and testnet
parent
1f70b279
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lightchain.go
light/lightchain.go
+4
-4
No files found.
light/lightchain.go
View file @
d8e2e9a4
...
@@ -108,8 +108,8 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, pow pow.PoW, mux
...
@@ -108,8 +108,8 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, pow pow.PoW, mux
// add trusted CHT
// add trusted CHT
if
config
.
DAOForkSupport
{
if
config
.
DAOForkSupport
{
WriteTrustedCht
(
bc
.
chainDb
,
TrustedCht
{
WriteTrustedCht
(
bc
.
chainDb
,
TrustedCht
{
Number
:
6
12
,
Number
:
6
37
,
Root
:
common
.
HexToHash
(
"
8c87a93e0ee531e2aca1b4460e4c201a60c19ffec4f5979262bf14ceeeff8471
"
),
Root
:
common
.
HexToHash
(
"
01e408d9b1942f05dba1a879f3eaafe34d219edaeb8223fecf1244cc023d3e23
"
),
})
})
}
else
{
}
else
{
WriteTrustedCht
(
bc
.
chainDb
,
TrustedCht
{
WriteTrustedCht
(
bc
.
chainDb
,
TrustedCht
{
...
@@ -122,8 +122,8 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, pow pow.PoW, mux
...
@@ -122,8 +122,8 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, pow pow.PoW, mux
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
})
{
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
// add trusted CHT for testnet
WriteTrustedCht
(
bc
.
chainDb
,
TrustedCht
{
WriteTrustedCht
(
bc
.
chainDb
,
TrustedCht
{
Number
:
4
36
,
Number
:
4
52
,
Root
:
common
.
HexToHash
(
"
97a12df5d04d72bde4b4b840e1018e4f08aee34b7d0bf2c5dbfc052b86fe7439
"
),
Root
:
common
.
HexToHash
(
"
511da2c88e32b14cf4a4e62f7fcbb297139faebc260a4ab5eb43cce6edcba324
"
),
})
})
glog
.
V
(
logger
.
Info
)
.
Infoln
(
"Added trusted CHT for testnet"
)
glog
.
V
(
logger
.
Info
)
.
Infoln
(
"Added trusted CHT for testnet"
)
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment