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
ccffad55
Unverified
Commit
ccffad55
authored
6 years ago
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
light, params: update CHTs, integrate CHT for Goerli too
parent
72c98dc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
postprocess.go
light/postprocess.go
+1
-0
config.go
params/config.go
+17
-16
No files found.
light/postprocess.go
View file @
ccffad55
...
...
@@ -109,6 +109,7 @@ var trustedCheckpoints = map[common.Hash]*params.TrustedCheckpoint{
params
.
MainnetGenesisHash
:
params
.
MainnetTrustedCheckpoint
,
params
.
TestnetGenesisHash
:
params
.
TestnetTrustedCheckpoint
,
params
.
RinkebyGenesisHash
:
params
.
RinkebyTrustedCheckpoint
,
params
.
GoerliGenesisHash
:
params
.
GoerliTrustedCheckpoint
,
}
var
(
...
...
This diff is collapsed.
Click to expand it.
params/config.go
View file @
ccffad55
...
...
@@ -28,6 +28,7 @@ var (
MainnetGenesisHash
=
common
.
HexToHash
(
"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"
)
TestnetGenesisHash
=
common
.
HexToHash
(
"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"
)
RinkebyGenesisHash
=
common
.
HexToHash
(
"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"
)
GoerliGenesisHash
=
common
.
HexToHash
(
"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"
)
)
var
(
...
...
@@ -50,10 +51,10 @@ var (
// MainnetTrustedCheckpoint contains the light client trusted checkpoint for the main network.
MainnetTrustedCheckpoint
=
&
TrustedCheckpoint
{
Name
:
"mainnet"
,
SectionIndex
:
2
16
,
SectionHead
:
common
.
HexToHash
(
"0xa
e3e551c8d60d06fd411a8e6008e90625d3bb0cbbf664b65d5ed90b318553541
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
eea7d2ab3545a37deecc66fc43c9556ae337c3ea1c6893e401428207bdb8e434
"
),
BloomRoot
:
common
.
HexToHash
(
"0x
b0d4176d160d67b99a9f963281e52bce0583a566b74b4497fe3ed24ae04004ff
"
),
SectionIndex
:
2
27
,
SectionHead
:
common
.
HexToHash
(
"0xa
2e0b25d72c2fc6e35a7f853cdacb193b4b4f95c606accf7f8fa8415283582c7
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
f69bdd4053b95b61a27b106a0e86103d791edd8574950dc96aa351ab9b9f1aa0
"
),
BloomRoot
:
common
.
HexToHash
(
"0x
ec1b454d4c6322c78ccedf76ac922a8698c3cac4d98748a84af4995b7bd3d744
"
),
}
// TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
...
...
@@ -75,10 +76,10 @@ var (
// TestnetTrustedCheckpoint contains the light client trusted checkpoint for the Ropsten test network.
TestnetTrustedCheckpoint
=
&
TrustedCheckpoint
{
Name
:
"testnet"
,
SectionIndex
:
1
48
,
SectionHead
:
common
.
HexToHash
(
"0x
4d3181bedb6aa96a6f3efa866c71f7802400d0fb4a6906946c453630d850efc0
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
25df2f9d63a5f84b2852988f0f0f7af5a7877da061c11b85c812780b5a27a5e
c"
),
BloomRoot
:
common
.
HexToHash
(
"0x
0584834e5222471a06c669d210e302ca602780eaaddd04634fd65471c2a91419
"
),
SectionIndex
:
1
61
,
SectionHead
:
common
.
HexToHash
(
"0x
5378afa734e1feafb34bcca1534c4d96952b754579b96a4afb23d5301ecececc
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
1cf2b071e7443a62914362486b613ff30f60cea0d9c268ed8c545f876a3ee60
c"
),
BloomRoot
:
common
.
HexToHash
(
"0x
5ac25c84bd18a9cbe878d4609a80220f57f85037a112644532412ba0d498a31b
"
),
}
// RinkebyChainConfig contains the chain parameters to run a node on the Rinkeby test network.
...
...
@@ -103,10 +104,10 @@ var (
// RinkebyTrustedCheckpoint contains the light client trusted checkpoint for the Rinkeby test network.
RinkebyTrustedCheckpoint
=
&
TrustedCheckpoint
{
Name
:
"rinkeby"
,
SectionIndex
:
1
13
,
SectionHead
:
common
.
HexToHash
(
"0x
b812f3095af3af1cb2de7d7c2086ee807736a7315992c461b0986699185daf77
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
5416d0924925eb835987ad3d1f059ecc66778c51959c8246a7a35b22ec5f3109
"
),
BloomRoot
:
common
.
HexToHash
(
"0x
cf74ca2c14e843b366561dab4fc64237bf6bb335119cbc97d723f3b501863470
"
),
SectionIndex
:
1
25
,
SectionHead
:
common
.
HexToHash
(
"0x
8a738386f6bb34add15846f8f49c4c519a2f32519096e792b9f43bcb407c831c
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
a1e5720a9bad4dce794f129e4ac6744398197b652868011486a6f89c8ec84a75
"
),
BloomRoot
:
common
.
HexToHash
(
"0x
a3048fe8b7e30f77f11bc755a88478363d7d3e71c2bdfe4e8ab9e269cd804ba2
"
),
}
// GoerliChainConfig contains the chain parameters to run a node on the Görli test network.
...
...
@@ -130,10 +131,10 @@ var (
// GoerliTrustedCheckpoint contains the light client trusted checkpoint for the Görli test network.
GoerliTrustedCheckpoint
=
&
TrustedCheckpoint
{
Name
:
"goerli"
,
SectionIndex
:
0
,
SectionHead
:
common
.
HexToHash
(
"0x
0000000000000000000000000000000000000000000000000000000000000000
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
0000000000000000000000000000000000000000000000000000000000000000
"
),
BloomRoot
:
common
.
HexToHash
(
"0x
0000000000000000000000000000000000000000000000000000000000000000
"
),
SectionIndex
:
9
,
SectionHead
:
common
.
HexToHash
(
"0x
8e223d827391eee53b07cb8ee057dbfa11c93e0b45352188c783affd7840a921
"
),
CHTRoot
:
common
.
HexToHash
(
"0x
e0a817ac69b36c1e437c5b0cff9e764853f5115702b5f66d451b665d6afb7e78
"
),
BloomRoot
:
common
.
HexToHash
(
"0x
50d672aeb655b723284969c7c1201fb6ca003c23ed144bcb9f2d1b30e2971c1b
"
),
}
// AllEthashProtocolChanges contains every protocol change (EIPs) introduced
...
...
This diff is collapsed.
Click to expand it.
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