Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cl/beacon/handler/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestGetSpecIncludesGasLimitSchedule(t *testing.T) {
}{
{name: "mainnet", network: chainspec.MainnetChainID, schedule: `[]`},
{name: "sepolia", network: chainspec.SepoliaChainID, schedule: `[{"EPOCH":"353024","GAS_LIMIT":"200000000"}]`},
{name: "hoodi", network: chainspec.HoodiChainID, schedule: `[{"EPOCH":"132352","GAS_LIMIT":"200000000"}]`},
{name: "custom omitted", customConfig: "GLOAS_FORK_EPOCH: 10\n", schedule: `[]`},
{name: "custom empty value", customConfig: "GLOAS_FORK_EPOCH: 10\nGAS_LIMIT_SCHEDULE:\n", schedule: `[]`},
{name: "custom null", customConfig: "GLOAS_FORK_EPOCH: 10\nGAS_LIMIT_SCHEDULE: null\n", schedule: `[]`},
Expand Down
5 changes: 5 additions & 0 deletions cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,8 @@ func hoodiConfig() BeaconChainConfig {
cfg.ElectraForkVersion = 0x60000910
cfg.FuluForkEpoch = 50688
cfg.FuluForkVersion = 0x70000910
cfg.GloasForkEpoch = 132352
cfg.GloasForkVersion = 0x80000910
cfg.TerminalTotalDifficulty = "0"
cfg.TerminalBlockHash = [32]byte{}
cfg.TerminalBlockHashActivationEpoch = math.MaxUint64
Expand All @@ -1401,6 +1403,9 @@ func hoodiConfig() BeaconChainConfig {
{52480, 15},
{54016, 21},
}
cfg.GasLimitSchedule = []GasLimitScheduleEntry{
{Epoch: 132352, GasLimit: 200_000_000},
}

cfg.InitializeForkSchedule()
return cfg
Expand Down
1 change: 1 addition & 0 deletions execution/chain/spec/chainspecs/hoodi.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"osakaTime": 1761677592,
"bpo1Time": 1762365720,
"bpo2Time": 1762955544,
"amsterdamTime": 1793036568,
"blobSchedule": {
"cancun": {
"target": 3,
Expand Down
5 changes: 4 additions & 1 deletion p2p/forkid/forkid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ func TestCreation(t *testing.T) {
{60412, 1742999832, ID{Hash: ChecksumToBytes(0x0929e24e), Activation: 1742999832, Next: 1761677592}}, // First Prague block
{1526774, 1761677592, ID{Hash: ChecksumToBytes(0xe7e0e7ff), Activation: 1761677592, Next: 1762365720}}, // First Osaka block (approx)
{1584118, 1762365720, ID{Hash: ChecksumToBytes(0x3893353e), Activation: 1762365720, Next: 1762955544}}, // First BPO1 block (approx)
{8000000, 1800000000, ID{Hash: ChecksumToBytes(0x23aa1351), Activation: 1762955544, Next: 0}}, // Future BPO2 block (mock)
{futureBn, 1762955544, ID{Hash: ChecksumToBytes(0x23aa1351), Activation: 1762955544, Next: 1793036568}},
{futureBn, 1793036567, ID{Hash: ChecksumToBytes(0x23aa1351), Activation: 1762955544, Next: 1793036568}},
{futureBn, 1793036568, ID{Hash: ChecksumToBytes(0x3d068b59), Activation: 1793036568, Next: 0}},
{8000000, 1800000000, ID{Hash: ChecksumToBytes(0x3d068b59), Activation: 1793036568, Next: 0}},
},
},
{
Expand Down
Loading