Repository navigation
fix(beacon): take Hoodi's GAS_LIMIT_SCHEDULE from the published config - #966
Open
pablodeymo wants to merge 2 commits into
Open
pablodeymo wants to merge 2 commits into
pablodeymo wants to merge 2 commits into
Conversation
The embedded Hoodi config.yaml was copied on Nov 26, before eth-clients/hoodi merged the Glamsterdam schedule (its #35, 615af5e5, Nov 28). The merged file has two keys ours lacked: - GAS_LIMIT_SCHEDULE: 200,000,000 from epoch 143616, Hoodi's gloas epoch. - MIN_TRANSACTION_GAS: 4096. The schedule is advisory (EIP-8261 adds no validity rule), so nothing was judged wrongly without it. But a validator client behind this node, started without --gas-limit, reads the schedule from /eth/v1/config/spec and falls back to 60,000,000 when there is none: on Hoodi its proposals would have targeted 60M from the fork on, against the network's 200M. MIN_TRANSACTION_GAS changes nothing: the value is the constant the node already runs on, and check_constants holds the file to it. The file is now eth-clients/hoodi's metadata/config.yaml at 615af5e5, byte for byte. An existing Hoodi directory resumes: the file's schedule always replaces the stored one.
pablodeymo
added a commit
that referenced
this pull request
Dec 2, 2026
#967) ## 🗒️ Description / Motivation The fix from #966, on `release/v2.0.0`, for `v2.0.0-rc.2`. #966 targets `main` and is not merged there yet; this is opened alongside it because the release is what has to carry it before Hoodi's fork (2026-12-15). The embedded Hoodi `config.yaml` lacks two keys of the published file (eth-clients/hoodi#35, `615af5e5`): - `GAS_LIMIT_SCHEDULE`: 200,000,000 from epoch 143616, Hoodi's gloas epoch. Without it a validator client behind this node, started without `--gas-limit`, targets 60,000,000 from the fork on. Advisory (EIP-8261), so the fork itself is not affected. - `MIN_TRANSACTION_GAS: 4096`: no effect, it is the constant the node already runs on. ## What Changed `git cherry-pick -x 4adceea` (the commit in #966) on top of `release/v2.0.0` (`3ed99c86`). It applied without conflicts and the patch is identical (same `git patch-id`). The Hoodi file on this branch is eth-clients/hoodi's `metadata/config.yaml` at `615af5e5`, byte for byte. ## Correctness / Behavior Guarantees An existing Hoodi data directory resumes, one written by `v2.0.0-rc.1` included: the schedule is advisory, so the file's replaces the stored one. No resync. ## Tests Added / Run On this branch: - `cargo fmt --all -- --check`, `make lint`: clean. - `cargo test -p ethlambda-types -p ethlambda --profile release-fast`: all pass, including the three tests #966 extends to Hoodi. ## Related Issues / PRs - Same fix against `main`: #966. If review changes it there, this needs the same change. - Release checklist: #943.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒️ Description / Motivation
The embedded Hoodi
config.yamlis behind the published one. It was copied on Nov 26 (#901), two days before eth-clients/hoodi merged its Glamsterdam schedule (eth-clients/hoodi#35,615af5e5). The merged file has two keys ours lacks:GAS_LIMIT_SCHEDULE--gas-limit, targets 60,000,000 from the fork onMIN_TRANSACTION_GASThe schedule is advisory (EIP-8261 adds no validity rule), so no block, bid or preference was judged wrongly, and the fork itself is not affected. The cost is the default: the validator client reads the schedule from
/eth/v1/config/specand falls back to60000000when there is none, so on Hoodi its proposals would vote the gas limit down against the network's 200M.Found while checking
release/v2.0.0for the Hoodi fork (2026-12-15). Needs a backport there.What Changed
bin/ethlambda/assets/hoodi/config.yaml: now eth-clients/hoodi'smetadata/config.yamlat615af5e5, byte for byte. The diff is the two keys above and their comments, 9 added lines.crates/common/types/src/beacon/config.rs:the_built_in_networks_schedules_parse_from_their_filescovers Hoodi beside Sepolia and Platåberget.bin/ethlambda/src/network/built_in.rs:the_testnet_configs_are_their_ownpins Hoodi's gloas epoch and version.bin/ethlambda/src/network/config_file.rs: Hoodi's file joins the "claimed, not ignored" test.README.md,docs/cli.md:--gas-limitnames Hoodi among the networks whose schedule makes the flag unnecessary.Correctness / Behavior Guarantees
first_config_differencedoes not compare it;the_gas_limit_schedule_is_stored_and_added_to_a_directory_that_predates_itcovers a changed schedule).MIN_TRANSACTION_GAS: 4096passescheck_constants, which holds the file to the node's constant.bootstrap_nodes.yaml(already identical to the published file). Sepolia's and mainnet's embedded configs are identical to their published files too.Tests Added / Run
cargo fmt --all -- --check,make lint: clean.cargo test -p ethlambda-types -p ethlambda --profile release-fast: all pass.the_built_in_networks_schedules_parse_from_their_filesfails (left: []), so the test does read the file.Related Issues / PRs