Skip to content

Commit 6caf356

Browse files
authored
Merge pull request #19369 from karalabe/les-update-chts
light, params: update CHTs, integrate CHT for Goerli too
2 parents 72c98dc + ccffad5 commit 6caf356

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

‎light/postprocess.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ var trustedCheckpoints = map[common.Hash]*params.TrustedCheckpoint{
109109
params.MainnetGenesisHash: params.MainnetTrustedCheckpoint,
110110
params.TestnetGenesisHash: params.TestnetTrustedCheckpoint,
111111
params.RinkebyGenesisHash: params.RinkebyTrustedCheckpoint,
112+
params.GoerliGenesisHash: params.GoerliTrustedCheckpoint,
112113
}
113114

114115
var (

‎params/config.go‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var (
2828
MainnetGenesisHash = common.HexToHash("0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3")
2929
TestnetGenesisHash = common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d")
3030
RinkebyGenesisHash = common.HexToHash("0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177")
31+
GoerliGenesisHash = common.HexToHash("0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a")
3132
)
3233

3334
var (
@@ -50,10 +51,10 @@ var (
5051
// MainnetTrustedCheckpoint contains the light client trusted checkpoint for the main network.
5152
MainnetTrustedCheckpoint = &TrustedCheckpoint{
5253
Name: "mainnet",
53-
SectionIndex: 216,
54-
SectionHead: common.HexToHash("0xae3e551c8d60d06fd411a8e6008e90625d3bb0cbbf664b65d5ed90b318553541"),
55-
CHTRoot: common.HexToHash("0xeea7d2ab3545a37deecc66fc43c9556ae337c3ea1c6893e401428207bdb8e434"),
56-
BloomRoot: common.HexToHash("0xb0d4176d160d67b99a9f963281e52bce0583a566b74b4497fe3ed24ae04004ff"),
54+
SectionIndex: 227,
55+
SectionHead: common.HexToHash("0xa2e0b25d72c2fc6e35a7f853cdacb193b4b4f95c606accf7f8fa8415283582c7"),
56+
CHTRoot: common.HexToHash("0xf69bdd4053b95b61a27b106a0e86103d791edd8574950dc96aa351ab9b9f1aa0"),
57+
BloomRoot: common.HexToHash("0xec1b454d4c6322c78ccedf76ac922a8698c3cac4d98748a84af4995b7bd3d744"),
5758
}
5859

5960
// TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
@@ -75,10 +76,10 @@ var (
7576
// TestnetTrustedCheckpoint contains the light client trusted checkpoint for the Ropsten test network.
7677
TestnetTrustedCheckpoint = &TrustedCheckpoint{
7778
Name: "testnet",
78-
SectionIndex: 148,
79-
SectionHead: common.HexToHash("0x4d3181bedb6aa96a6f3efa866c71f7802400d0fb4a6906946c453630d850efc0"),
80-
CHTRoot: common.HexToHash("0x25df2f9d63a5f84b2852988f0f0f7af5a7877da061c11b85c812780b5a27a5ec"),
81-
BloomRoot: common.HexToHash("0x0584834e5222471a06c669d210e302ca602780eaaddd04634fd65471c2a91419"),
79+
SectionIndex: 161,
80+
SectionHead: common.HexToHash("0x5378afa734e1feafb34bcca1534c4d96952b754579b96a4afb23d5301ecececc"),
81+
CHTRoot: common.HexToHash("0x1cf2b071e7443a62914362486b613ff30f60cea0d9c268ed8c545f876a3ee60c"),
82+
BloomRoot: common.HexToHash("0x5ac25c84bd18a9cbe878d4609a80220f57f85037a112644532412ba0d498a31b"),
8283
}
8384

8485
// RinkebyChainConfig contains the chain parameters to run a node on the Rinkeby test network.
@@ -103,10 +104,10 @@ var (
103104
// RinkebyTrustedCheckpoint contains the light client trusted checkpoint for the Rinkeby test network.
104105
RinkebyTrustedCheckpoint = &TrustedCheckpoint{
105106
Name: "rinkeby",
106-
SectionIndex: 113,
107-
SectionHead: common.HexToHash("0xb812f3095af3af1cb2de7d7c2086ee807736a7315992c461b0986699185daf77"),
108-
CHTRoot: common.HexToHash("0x5416d0924925eb835987ad3d1f059ecc66778c51959c8246a7a35b22ec5f3109"),
109-
BloomRoot: common.HexToHash("0xcf74ca2c14e843b366561dab4fc64237bf6bb335119cbc97d723f3b501863470"),
107+
SectionIndex: 125,
108+
SectionHead: common.HexToHash("0x8a738386f6bb34add15846f8f49c4c519a2f32519096e792b9f43bcb407c831c"),
109+
CHTRoot: common.HexToHash("0xa1e5720a9bad4dce794f129e4ac6744398197b652868011486a6f89c8ec84a75"),
110+
BloomRoot: common.HexToHash("0xa3048fe8b7e30f77f11bc755a88478363d7d3e71c2bdfe4e8ab9e269cd804ba2"),
110111
}
111112

112113
// GoerliChainConfig contains the chain parameters to run a node on the Görli test network.
@@ -130,10 +131,10 @@ var (
130131
// GoerliTrustedCheckpoint contains the light client trusted checkpoint for the Görli test network.
131132
GoerliTrustedCheckpoint = &TrustedCheckpoint{
132133
Name: "goerli",
133-
SectionIndex: 0,
134-
SectionHead: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
135-
CHTRoot: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
136-
BloomRoot: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
134+
SectionIndex: 9,
135+
SectionHead: common.HexToHash("0x8e223d827391eee53b07cb8ee057dbfa11c93e0b45352188c783affd7840a921"),
136+
CHTRoot: common.HexToHash("0xe0a817ac69b36c1e437c5b0cff9e764853f5115702b5f66d451b665d6afb7e78"),
137+
BloomRoot: common.HexToHash("0x50d672aeb655b723284969c7c1201fb6ca003c23ed144bcb9f2d1b30e2971c1b"),
137138
}
138139

139140
// AllEthashProtocolChanges contains every protocol change (EIPs) introduced

0 commit comments

Comments
 (0)