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
ecca2c3c
Commit
ecca2c3c
authored
Sep 12, 2017
by
Péter Szilágyi
Committed by
GitHub
Sep 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15129 from zsfelfoldi/cht1040
light: new CHTs for mainnet and ropsten
parents
c8e70186
7a7f6a4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lightchain.go
light/lightchain.go
+6
-1
No files found.
light/lightchain.go
View file @
ecca2c3c
...
...
@@ -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
...
...
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