Skip to content

Pool the PQ slashings that gossip accepts - #1006

Open
tcoratger wants to merge 2 commits into
lambdaclass:pq-devnet-2from
tcoratger:fix/pq-slash-gossip
Open

tcoratger wants to merge 2 commits into
lambdaclass:pq-devnet-2from
tcoratger:fix/pq-slash-gossip

Conversation

@tcoratger

@tcoratger tcoratger commented Dec 6, 2026 •

Copy link
Copy Markdown

Description / Motivation

At PQ, an accepted proposer or attester slashing was relayed and then dropped.
PqValidated::forward handed nothing on, so a block this node proposed could never include it.
The PQ p2p spec keeps both topics, and a gloas slashing accepted on gossip already goes to the operation pool.

What Changed

  • operation.rs (first commit): the operation pool holds PQ proposer and attester slashings in two lists of their own, keyed and pruned as the other slashings are.
    The pruning rule for attester slashings is one helper shared by both kinds.
  • beacon/pq.rs: an accepted PQ slashing goes to the operation pool.

The first commit is shared verbatim with #1007 and #1008.
Whichever merges first, the others drop it on rebase.
#1008 packs the pooled slashings into a PQ block.

Tests Added / Run

  • the_first_pq_slashing_per_key_is_kept and prune_drops_pq_slashings_with_nobody_left_to_slash: the PQ lists keep the first entry per key, and pruning drops the slashings that slash nobody.
  • an_accepted_pq_slashing_is_pooled: an accepted slashing of each kind is pooled; a rejected or overloaded one is not.
    It fails with the pooling removed.
  • cargo test --profile release-fast -p ethlambda-storage -p ethlambda-p2p: 260 and 537 passed.
  • cargo fmt --all --check and cargo clippy --profile release-fast -p ethlambda-storage -p ethlambda-p2p --all-targets -- -D warnings: clean.

🤖 Generated with Claude Code

tcoratger and others added 2 commits December 6, 2026 21:14
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>
An accepted PQ proposer or attester slashing was relayed and then dropped,
so a block this node proposed could never include it.
It now goes to the operation pool, as a gloas slashing does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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