Skip to content

Accept the PQ attester slashing on the Beacon API - #1007

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

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

Conversation

@tcoratger

@tcoratger tcoratger commented Dec 6, 2026 •

Copy link
Copy Markdown

Description / Motivation

POST /eth/v2/beacon/pool/attester_slashings read only electra's container.
A PQ attester slashing carries a proof where electra's carries a signature, so from PQ on a validator client could not submit one.
The GET list also answered with the pool's electra slashings under the PQ version.

What Changed

  • operations.rs: from PQ on, by the wall clock's fork as the GET route already used, the POST route reads PQ's container.
    It checks it with PQ's gossip rules (gossip::pq::attester_slashing_cheap_checks, then the stateful checks) on a blocking thread, pools it and publishes it.
    The GET route returns the pool's PQ slashings.
  • network-api and p2p: PqGossipObject::AttesterSlashing is published on the attester_slashing topic, under the digest of the wall clock's slot.
  • 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 Pack the pooled slashings into a PQ block #1008; whichever merges first, the others drop it on rebase.

Before PQ, the routes are unchanged.

Tests Added / Run

  • from_pq_on_a_pq_attester_slashing_is_pooled_and_published: a slashing whose proof fails is refused and neither pooled nor published; a valid one is pooled, published as PQ's, and returned by GET under pq.
    It fails with the PQ branch removed.
  • cargo test --profile release-fast -p ethlambda-network-api -p ethlambda-p2p -p ethlambda-rpc -p ethlambda-storage: all passed.
  • cargo fmt --all --check and cargo clippy --locked --profile release-fast on those crates with --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>
The attester slashings pool route read only electra's container, so from
PQ on a validator client could not submit a slashing, and the GET list
answered with electra's slashings under the PQ version.
From PQ on, by the wall clock's fork as the GET route already used, the
route reads PQ's container, checks it with PQ's gossip rules, pools it and
publishes it on the PQ digest's attester_slashing topic.
The GET list returns the pool's PQ slashings.

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