Repository navigation
Conversation
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
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
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 newoperation_validation_permitspool 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.rsandbeacon/pq.rs: the gloas operations and the PQ slashings draw from it.metrics.rs,docs/metrics.mdanddocs/beacon_wire.md: the newoperationpool 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 --checkandcargo clippy --locked --profile release-fast -p ethlambda-p2p --all-targets -- -D warnings: clean.🤖 Generated with Claude Code