|
17 | 17 | package params
|
18 | 18 |
|
19 | 19 | import (
|
| 20 | + _ "embed" |
| 21 | + |
20 | 22 | "github.com/ethereum/go-ethereum/common"
|
21 | 23 | )
|
22 | 24 |
|
| 25 | +//go:embed checkpoint_mainnet.hex |
| 26 | +var checkpointMainnet string |
| 27 | + |
| 28 | +//go:embed checkpoint_sepolia.hex |
| 29 | +var checkpointSepolia string |
| 30 | + |
| 31 | +//go:embed checkpoint_holesky.hex |
| 32 | +var checkpointHolesky string |
| 33 | + |
23 | 34 | var (
|
24 | 35 | MainnetLightConfig = (&ChainConfig{
|
25 | 36 | GenesisValidatorsRoot: common.HexToHash("0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"),
|
26 | 37 | GenesisTime: 1606824023,
|
27 |
| - Checkpoint: common.HexToHash("0x6509b691f4de4f7b083f2784938fd52f0e131675432b3fd85ea549af9aebd3d0"), |
| 38 | + Checkpoint: common.HexToHash(checkpointMainnet), |
28 | 39 | }).
|
29 | 40 | AddFork("GENESIS", 0, []byte{0, 0, 0, 0}).
|
30 | 41 | AddFork("ALTAIR", 74240, []byte{1, 0, 0, 0}).
|
|
35 | 46 | SepoliaLightConfig = (&ChainConfig{
|
36 | 47 | GenesisValidatorsRoot: common.HexToHash("0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"),
|
37 | 48 | GenesisTime: 1655733600,
|
38 |
| - Checkpoint: common.HexToHash("0x456e85f5608afab3465a0580bff8572255f6d97af0c5f939e3f7536b5edb2d3f"), |
| 49 | + Checkpoint: common.HexToHash(checkpointSepolia), |
39 | 50 | }).
|
40 | 51 | AddFork("GENESIS", 0, []byte{144, 0, 0, 105}).
|
41 | 52 | AddFork("ALTAIR", 50, []byte{144, 0, 0, 112}).
|
|
47 | 58 | HoleskyLightConfig = (&ChainConfig{
|
48 | 59 | GenesisValidatorsRoot: common.HexToHash("0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"),
|
49 | 60 | GenesisTime: 1695902400,
|
50 |
| - Checkpoint: common.HexToHash("0x6456a1317f54d4b4f2cb5bc9d153b5af0988fe767ef0609f0236cf29030bcff7"), |
| 61 | + Checkpoint: common.HexToHash(checkpointHolesky), |
51 | 62 | }).
|
52 | 63 | AddFork("GENESIS", 0, []byte{1, 1, 112, 0}).
|
53 | 64 | AddFork("ALTAIR", 0, []byte{2, 1, 112, 0}).
|
|
0 commit comments