github.com/ethereum/go-ethereum@v1.16.1/beacon/params/networks.go (about) 1 // Copyright 2024 The go-ethereum Authors 2 // This file is part of the go-ethereum library. 3 // 4 // The go-ethereum library is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU Lesser General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // The go-ethereum library is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU Lesser General Public License for more details. 13 // 14 // You should have received a copy of the GNU Lesser General Public License 15 // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. 16 17 package params 18 19 import ( 20 _ "embed" 21 22 "github.com/ethereum/go-ethereum/common" 23 ) 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 34 var ( 35 MainnetLightConfig = (&ChainConfig{ 36 GenesisValidatorsRoot: common.HexToHash("0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"), 37 GenesisTime: 1606824023, 38 Checkpoint: common.HexToHash(checkpointMainnet), 39 }). 40 AddFork("GENESIS", 0, []byte{0, 0, 0, 0}). 41 AddFork("ALTAIR", 74240, []byte{1, 0, 0, 0}). 42 AddFork("BELLATRIX", 144896, []byte{2, 0, 0, 0}). 43 AddFork("CAPELLA", 194048, []byte{3, 0, 0, 0}). 44 AddFork("DENEB", 269568, []byte{4, 0, 0, 0}). 45 AddFork("ELECTRA", 364032, []byte{5, 0, 0, 0}) 46 47 SepoliaLightConfig = (&ChainConfig{ 48 GenesisValidatorsRoot: common.HexToHash("0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"), 49 GenesisTime: 1655733600, 50 Checkpoint: common.HexToHash(checkpointSepolia), 51 }). 52 AddFork("GENESIS", 0, []byte{144, 0, 0, 105}). 53 AddFork("ALTAIR", 50, []byte{144, 0, 0, 112}). 54 AddFork("BELLATRIX", 100, []byte{144, 0, 0, 113}). 55 AddFork("CAPELLA", 56832, []byte{144, 0, 0, 114}). 56 AddFork("DENEB", 132608, []byte{144, 0, 0, 115}). 57 AddFork("ELECTRA", 222464, []byte{144, 0, 0, 116}) 58 59 HoleskyLightConfig = (&ChainConfig{ 60 GenesisValidatorsRoot: common.HexToHash("0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"), 61 GenesisTime: 1695902400, 62 Checkpoint: common.HexToHash(checkpointHolesky), 63 }). 64 AddFork("GENESIS", 0, []byte{1, 1, 112, 0}). 65 AddFork("ALTAIR", 0, []byte{2, 1, 112, 0}). 66 AddFork("BELLATRIX", 0, []byte{3, 1, 112, 0}). 67 AddFork("CAPELLA", 256, []byte{4, 1, 112, 0}). 68 AddFork("DENEB", 29696, []byte{5, 1, 112, 0}). 69 AddFork("ELECTRA", 115968, []byte{6, 1, 112, 0}) 70 71 HoodiLightConfig = (&ChainConfig{ 72 GenesisValidatorsRoot: common.HexToHash("0x212f13fc4df078b6cb7db228f1c8307566dcecf900867401a92023d7ba99cb5f"), 73 GenesisTime: 1742212800, 74 Checkpoint: common.HexToHash(""), 75 }). 76 AddFork("GENESIS", 0, common.FromHex("0x10000910")). 77 AddFork("ALTAIR", 0, common.FromHex("0x20000910")). 78 AddFork("BELLATRIX", 0, common.FromHex("0x30000910")). 79 AddFork("CAPELLA", 0, common.FromHex("0x40000910")). 80 AddFork("DENEB", 0, common.FromHex("0x50000910")). 81 AddFork("ELECTRA", 2048, common.FromHex("0x60000910")). 82 AddFork("FULU", 18446744073709551615, common.FromHex("0x70000910")) 83 )