Repository navigation
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
MegaRedHand
added a commit
to lambdaclass/ethlambda
that referenced
this pull request
Nov 27, 2026
… in CI (#920) ## Summary This moves the beacon spec-test pin (`CONSENSUS_SPEC_TESTS_VERSION`) from v1.7.0-beta.2 to v1.7.0-beta.5, which both CI beacon jobs read, and ports the rule changes the new fixtures require. The pin alone fails 460 mainnet and 477 minimal cases. Most of those failures are a changed fixture format. The rest are three releases of spec changes in the gloas state transition, fork choice and gossip rules. ## Changes ### Fixtures and harness - **Gossip format:** the vectors changed shape. Each message now carries its own absolute `current_time_ms`, and blocks may be flagged `late`. The runner reads the new format and imports each block at its slot start, or past its deadlines if it is late. That accounted for about 380 of the failures. - **Envelope tests:** the chain actor's unit tests hard-coded roots from fixtures beta.5 regenerated. The fixture payloads also carry real block hashes now. - **New runner:** `fast_confirmation` collects beta.5's new Fast Confirmation Rule vectors. They are all ignored, as explained below. ### Gloas state transition - `upgrade_to_gloas` clears the fork slot's payload-availability bit (ethereum/consensus-specs#5808). - `upgrade_to_gloas` onboards only builder-credential deposits at the fork (ethereum/consensus-specs#5736). - The builder payment is settled before the parent's execution requests (ethereum/consensus-specs#5695). - The builders sweep subtracts withdrawals already queued for the builder in the same payload. - `slash_validator` clears every pending builder payment the slashed validator proposed (ethereum/consensus-specs#5719). Gloas's own `process_proposer_slashing` is gone. ### Fork choice and fast confirmation - **Data availability:** fulu `is_data_available` checks that each column belongs to the block and verifies its inclusion proof (ethereum/consensus-specs#5765). - **Viable heads:** the viable-head filter works on fork-choice nodes. With nothing viable, the head is the justified root's EMPTY node (ethereum/consensus-specs#5509). - **Rounding:** slot-component deadlines round to the nearest millisecond, in the node and the validator client (ethereum/consensus-specs#5756). On mainnet the attestation deadline is 4000 ms, not 3999. - **Clock:** the fork-choice clock is in milliseconds (`on_tick_ms`), and the chain actor no longer truncates to the second. - **Fast confirmation:** moved to beta.5. ethereum/consensus-specs#5789, a pending parent node in the gloas discount, is the only change since the previous pin at `master@f993cf2`. ### Gossip rules - **Envelopes:** eight new checks: parent beacon root, prev_randao, gas limit, transaction count, parent hash, timestamp, empty transactions, withdrawals and the EL block hash (ethereum/consensus-specs#5821, ethereum/consensus-specs#5802, ethereum/consensus-specs#5770). The block hash is recomputed in a new `beacon::execution_block_hash` module (RLP, Keccak-256, ordered trie root), using the `sha3` already in `Cargo.lock`. It reproduces `block_hash` on live Platåberget payloads of 48 and 106 transactions. - **Bids:** - At most `get_builder_bid_limit` bids per builder per slot and parent, replacing one per builder (ethereum/consensus-specs#5805, ethereum/consensus-specs#5843). - Bids before the previous slot's payload-attestation deadline are ignored. - A bid on the head's parent passes only for a late or equivocating head (ethereum/consensus-specs#5803). - **Voluntary exits:** an exit for a validator with pending partial withdrawals is ignored (ethereum/consensus-specs#5764). - **Aggregates:** a seen bitset of a different length no longer counts as a superset (ethereum/consensus-specs#5766). - **Proposer preferences:** signatures verify only under the proposal epoch's fork version. The beta.2 fallback domains, kept "until the fixtures move past it", are removed. ### Config and storage - `MIN_TRANSACTION_GAS` is a `Config` field, checked against the compiled constant at startup and reported by `/eth/v1/config/spec`. - **`DB_VERSION` is now 8.** Existing data directories are refused and must resync. ### Producer side - A payload with no blobs yields no column sidecars (ethereum/consensus-specs#5767). - Already matched beta.5, no change: ethereum/consensus-specs#5763, ethereum/consensus-specs#5768, ethereum/consensus-specs#5838, ethereum/consensus-specs#5706. ### Docs - `CLAUDE.md`, `docs/beacon_stf.md`, `docs/spec_deviations.md` and others are updated. Deviation entries beta.5 made obsolete are removed or narrowed. ## Signature checks are never switched off All 1,294 `fast_confirmation` vectors are generated with BLS ignored (`bls_setting: 2`), with stub signatures that are not curve points. They are reported as ignored rather than run through any skip switch. The `ethlambda_crypto::bls` module doc and `CLAUDE.md` now say why no such switch may be added: it could easily end up skipping checks in a production build. They also say what to do instead: split the signature checks from the other checks. #919 tracks that split so these cases can run. ## Enable once #921 merges The gloas vectors for four gossip handlers are reported as ignored here: `gossip_voluntary_exit`, `gossip_proposer_slashing`, `gossip_attester_slashing` and `gossip_bls_to_execution_change`. This PR's `validated_forks` (`crates/blockchain/state_transition/tests/beacon_spec/gossip.rs`) lists only fulu for them, because on main `gossip::operations` ignores every operation under a gloas head. #921 adds operations under gloas, and its copy of `validated_forks` already lists gloas for these four handlers. Whichever of the two merges second must end with fulu and gloas for all four, and drop the "known gap" comment on them: - **#921 first:** this PR's merge of main conflicts in `gossip.rs`. Keep #921's gloas entries, then confirm the beta.5 vectors pass (`make test-beacon`). - **This PR first:** #921's merge of main brings these vectors. Its gloas entries must then pass against beta.5. ## Worth a look - **Live gloas chains:** Sepolia and Platåberget forked to gloas (2026-10-06 and 2026-08-20) before ethereum/consensus-specs#5808 existed. The new `upgrade_to_gloas` no longer reproduces their post-fork state, so a node cannot replay either fork transition. Checkpoint-synced nodes are unaffected, and era replay stops before Sepolia's fork era. Hoodi forks on 2026-12-15 and needs its other clients on beta.5 by then. - Other clients apply the change the same way, with no exception for either chain. Teku (Consensys-Incorporated/teku#11772) and Lodestar (ChainSafe/lodestar#10615) have merged it. Lighthouse (sigp/lighthouse#10675) and Nimbus (status-im/nimbus-eth2#9481) have it in open beta.5 PRs. Prysm and Grandine don't have it yet. - Nobody has raised the already-forked chains in the spec issue (ethereum/consensus-specs#5794) or in those PRs. Once every client ships beta.5, none of them can replay these fork transitions. - **Gossip cost:** a bid on the head's parent, against a timely head, reads the head slot's `LiveChain` rows for `is_proposer_equivocation` (`Store::block_index_at_slot`, a prefix seek), not the full block index, since the rule runs before the bid is authenticated. - **CI time:** the minimal job compiles and walks the new runner, but every case is ignored, so it costs little. ## Testing | Run | Passed | Failed | Ignored | |---|---|---|---| | Spec tests, mainnet | 7,556 | 0 | 986 | | Spec tests, minimal | 49,650 | 0 | 6,410 | The minimal ignored count includes the 1,294 unsigned `fast_confirmation` cases. Lib tests: | Crate | Passed | |---|---| | state-transition | 764 (also 749 under `preset-minimal`) | | blockchain (with spec feature) | 462 | | p2p | 507 | | rpc | 511 | | validator | 922 | | storage | 240 | | types | 256 | | ethlambda bin | 343 | `make fmt`, `make lint` and `make cooldown-check` are clean. --------- Co-authored-by: Pablo Deymonnaz <pdeymon@fi.uba.ar>
eserilev
force-pushed
the
spec-v1.7.0-beta.5
branch
3 times, most recently
from
November 29, 2026 07:30
854b337 to
f130251
Compare
eserilev
force-pushed
the
spec-v1.7.0-beta.5
branch
from
November 29, 2026 08:49
f130251 to
b94fc18
Compare
…onsensus-specs#5802)
eserilev
force-pushed
the
spec-v1.7.0-beta.5
branch
from
November 29, 2026 10:58
b94fc18 to
cab6cd4
Compare
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.
https://github.com/ethereum/consensus-specs/releases/tag/v1.7.0-beta.5
is_non_strict_supersetethereum/consensus-specs#5766voluntary_exitgossip with pending partial withdrawals ethereum/consensus-specs#5764upgrade_to_gloasethereum/consensus-specs#5808