Repository navigation
Conversation
The PQ proposer and attester slashings carry their own containers, so the pool keeps them in two lists of their own, keyed and pruned as the other forks' slashings are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PQ block production left both slashing lists empty, so this node never included a slashing in a block it proposed. It now packs the pool's PQ proposer and attester slashings as electra's are packed: each kept only if PQ's process function accepts it on a scratch state with the earlier ones applied, attester slashings ranked by how many validators they slash, and the lists capped at MAX_PROPOSER_SLASHINGS and MAX_ATTESTER_SLASHINGS_ELECTRA. A block that fails to build is built again without its slashings, as it already was without its attestations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 6, 2026
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
PQ block production left both slashing lists of the body empty, so this node never included a slashing in a block it proposed.
PQ's
process_operationstakes up toMAX_PROPOSER_SLASHINGSproposer slashings andMAX_ATTESTER_SLASHINGS_ELECTRAattester slashings.What Changed
pq_block_production.rs:pack_pq_slashingspicks the pool's PQ slashings aspack_operationspicks electra's.Each is kept only if PQ's
process_proposer_slashingorprocess_attester_slashingaccepts it on a scratch state with the earlier ones applied, so a slashing whose validators are all slashed already is skipped.Attester slashings are ranked by how many validators they slash, and both lists are capped at the limits above.
block_production.rs:pack_eachandwould_slashare shared with it;would_slashtakes the two index lists, so electra's behaviour is unchanged.pq_proposal.rs: the block packs them.A block that fails to build is built again without its attestations, as before, and then also without its slashings.
operation.rs(first commit): the operation pool holds PQ slashings in lists of their own.It is shared verbatim with Pool the PQ slashings that gossip accepts #1006 and Accept the PQ attester slashing on the Beacon API #1007, which fill the pool from gossip and from the Beacon API; whichever merges first, the others drop it on rebase.
Tests Added / Run
pq_slashings_are_packed_once_and_only_while_they_slash: of three proposer slashings, a second one for the same proposer and one for a slashed proposer are skipped; of three attester slashings, one with a failing proof and one for a slashed validator are skipped.The packed ones then process on the state.
Of 17 valid proposer slashings the first 16 are packed, and of two valid attester slashings the one slashing two validators is.
cargo test --profile release-fast -p ethlambda-state-transition -p ethlambda-rpc: all passed.cargo fmt --all --checkandcargo clippy --profile release-fast -p ethlambda-state-transition -p ethlambda-rpc --all-targets -- -D warnings: clean.🤖 Generated with Claude Code