Repository navigation
Conversation
…n gossip - A pre-fork parent state holds BLS keys, so the block precheck skipped the XMSS signature. - A forged block for the fork's first slot was accepted, forwarded and marked as seen. - The honest block for that slot was then ignored. - Gossip now checks the signature against the parent state advanced through the PQ upgrade. - If that state cannot be built within the vote-state bound, the block is queued for import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tcoratger
force-pushed
the
fix/pq-first-block-signature-gossip
branch
from
December 5, 2026 18:59
f2986d1 to
ad6d1d2
Compare
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 pq
beacon_blockgossip rule rejects an invalid proposer signature (p2p-interface.md, Modifiedbeacon_block).For a PQ block on a pre-PQ parent,
precheck_blockreturnsOk(()), since that state holds BLS keys.Nothing else checks the signature.
Trace, with
EIP8483_FORK_EPOCH == PQ_FORK_EPOCH == Eafter gloas:E, with the expected proposer, the right parent and a garbage XMSS signature.(slot, proposer)as seen.What Changed
gossip/block.rs: for a PQ block on a pre-PQ parent, check the signature against the parent state advanced to the block's epoch, which runsupgrade_to_pq.MAX_VOTE_STATE_ADVANCE_EPOCHS, the block is queued: not forwarded, not marked seen, checked at import.gossip/mod.rs: newQueueReason::ForkStateUnavailable.Tests Added / Run
a_forged_first_pq_block_on_a_pre_fork_parent_is_rejected: before,Queue(ParentNotReady)from a later rule; after,Reject(BadSignature).cargo test -p ethlambda-state-transition --lib -- gossip::: 209 passed, 1 ignored.cargo fmt,cargo clippy -p ethlambda-state-transition --all-targets -- -D warnings: clean.🤖 Generated with Claude Code