Skip to content

fix(beacon): take Hoodi's GAS_LIMIT_SCHEDULE from the published config - #966

Open
pablodeymo wants to merge 2 commits into
mainfrom
fix/hoodi-config-upstream
Open

pablodeymo wants to merge 2 commits into
mainfrom
fix/hoodi-config-upstream

Conversation

@pablodeymo

Copy link
Copy Markdown
Collaborator

🗒️ Description / Motivation

The embedded Hoodi config.yaml is 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:

Key Published value Effect of not having it
GAS_LIMIT_SCHEDULE 200,000,000 from epoch 143616 (Hoodi's gloas epoch) A validator client behind this node, started without --gas-limit, targets 60,000,000 from the fork on
MIN_TRANSACTION_GAS 4096 None: it is the constant the node already runs on

The 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/spec and falls back to 60000000 when 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.0 for the Hoodi fork (2026-12-15). Needs a backport there.

What Changed

  • bin/ethlambda/assets/hoodi/config.yaml: now eth-clients/hoodi's metadata/config.yaml at 615af5e5, 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_files covers Hoodi beside Sepolia and Platåberget.
  • bin/ethlambda/src/network/built_in.rs: the_testnet_configs_are_their_own pins 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-limit names Hoodi among the networks whose schedule makes the flag unnecessary.

Correctness / Behavior Guarantees

  • An existing Hoodi data directory resumes. The schedule is advisory, so the file's always replaces the stored one (first_config_difference does not compare it; the_gas_limit_schedule_is_stored_and_added_to_a_directory_that_predates_it covers a changed schedule).
  • MIN_TRANSACTION_GAS: 4096 passes check_constants, which holds the file to the node's constant.
  • Not changed: 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.
  • With the previous Hoodi file put back, the_built_in_networks_schedules_parse_from_their_files fails (left: []), so the test does read the file.

Related Issues / PRs

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant