Repository navigation
perf(pq): sign the payload committee's votes after the slot's attestations - #907
Merged
Merged
Conversation
…tions A leanXMSS signature costs about 0.3 s of a core. A devnet host's twenty attestations and fifteen payload committee votes per slot used to sign at once on the same cores, so both batches finished within milliseconds of each other, a second or more after the block. The attestations are due a quarter into the slot, the votes three quarters in. At a PQ slot the committee vote now starts once the slot's attestations are out, or their duty failed or gave up, and before the aggregation's wait, so the attestations get the cores to themselves. Earlier forks are unchanged: a BLS signature costs microseconds.
#896 adds the same helper at the same place; identical lines merge cleanly when pq-devnet-0 is merged into pq-devnet-1.
This was referenced Nov 26, 2026
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
On pq-devnet-0, each ethlambda node signs about 20 attestations and 15 payload timeliness committee (PTC) votes per slot. A leanXMSS signature costs about 0.3 s of a core (see #906 for the measurement).
Since #891, both duties start on the slot's block or payload, which arrive within a fraction of a second of each other. So both sign at once, on the same rayon pool and the same 8 cores.
Published attestationsandPublished PQ payload attestationsland within 20 ms of each other in about 80% of slots.So at PQ, the PTC vote now starts only once the slot's attestations are out.
What Changed
crates/validator/src/lib.rsserve_slot_duties, at a PQ slot, the PTC vote waits for a oneshot thatattest_and_aggregatesends once the attestation duty has published, failed or given up.execution_payload_available, already seen by then in the usual case) or its 9 s deadline.crates/validator/src/slot_clock.rs:SlotClock::is_pq.Correctness / Behavior Guarantees
Tests Added / Run
slot_clock::tests::pq_starts_at_its_fork_epoch.serve_slot_dutiestests (a committee member with no attester duty still votes; no vote before gloas) still cover the non-PQ paths.make fmt,make lintclean.Related Issues / PRs
pq-devnet-0; each stands alone:Local devnet (all four PRs together, A/B)
Run with ethereum-package
pq(7a29d69e), PQ at genesis, on an arm64 Mac:pq-devnet-0(ba522d44c, 64 validators).ethpandaops/teku:pq-devnet-0, 32 validators).Five epochs ran, and the three nodes justified and finalized together (
just=3 fin=2at slot 132, one head). Justification needs more than 107 of the 160 votes, so the new client's streamed votes counted. There were no warnings on any node beyond startup notices, and zero signing, attestation, PTC or envelope failures on either client.On this small network each client signs only about two votes per slot, so the streaming gain is smaller than on pq-devnet-0's twenty. The node there answers the early PTC request in 0.15 s, so the 2 s state advance only shows at pq-devnet-0's 10,000 validators. Both effects are expected to be larger on the real devnet.