Skip to content

Validate gossip operations on a permit pool of their own - #1005

Open
tcoratger wants to merge 1 commit into
lambdaclass:pq-devnet-2from
tcoratger:fix/pq-ops-pool
Open

tcoratger wants to merge 1 commit into
lambdaclass:pq-devnet-2from
tcoratger:fix/pq-ops-pool

Conversation

@tcoratger

Copy link
Copy Markdown

Description / Motivation

The slashing, exit and BLS change topics drew their stateful-check permits from the attestation pool, 128 permits shared with aggregates and subnet attestations.
A PQ attester slashing that passes the cheap checks costs up to two STARK verifications.
A flood of such slashings could take the attestation pool's permits, and honest aggregates would then be ignored as overloaded.

What Changed

  • lib.rs: a new operation_validation_permits pool of 8 permits.
    Honest operations are rare, so a small pool is enough; the gloas exit and BLS change topics share it, each check one or two BLS verifications.
  • verdict.rs and beacon/pq.rs: the gloas operations and the PQ slashings draw from it.
  • metrics.rs, docs/metrics.md and docs/beacon_wire.md: the new operation pool label, and the pool list.

Tests Added / Run

  • the_operation_permit_pool_is_independent_of_the_attestation_pool: a gloas operation and both PQ slashings take their permit from the new pool, and exhausting it leaves the attestation pool's permits untouched.
    It fails with the PQ slashings back on the attestation pool.
  • cargo test --profile release-fast -p ethlambda-p2p: 537 passed.
  • cargo fmt --all --check and cargo clippy --locked --profile release-fast -p ethlambda-p2p --all-targets -- -D warnings: clean.

🤖 Generated with Claude Code

The slashing, exit and BLS change topics drew their stateful-check permits
from the attestation pool.
A PQ attester slashing that passes the cheap checks costs up to two STARK
verifications, so a flood of them could take that pool's permits and get
honest aggregates ignored as overloaded.
The operation topics now draw from a pool of 8 permits.

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