good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
ecca2c3c
Commit
ecca2c3c
authored
Sep 12, 2017
by
Péter Szilágyi
Committed by
GitHub
Sep 12, 2017
Browse files
Options
Downloads
Plain Diff
Merge pull request #15129 from zsfelfoldi/cht1040
light: new CHTs for mainnet and ropsten
parents
c8e70186
7a7f6a4f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
light/lightchain.go
+6
-1
6 additions, 1 deletion
light/lightchain.go
with
6 additions
and
1 deletion
light/lightchain.go
+
6
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment