test(networking): add end-to-end req/resp protocol message vectors#616
Merged
tcoratger merged 1 commit intoleanEthereum:mainfrom Apr 15, 2026
Merged
Conversation
Extends the req/resp codec test suite with vectors that use real Lean consensus SSZ message types (Status, BlocksByRootRequest) through the full wire pipeline, and adds Snappy multi-chunk boundary tests. New vectors: - Status request (80-byte fixed-size SSZ through varint + Snappy) - Status SUCCESS response (same payload with response code prefix) - BlocksByRootRequest with two roots (68-byte variable-size SSZ) - BlocksByRootRequest with empty root list (minimal 4-byte SSZ) - Snappy chunk boundary (65536 bytes, exact single-chunk limit) - Multi-chunk payload (65537 bytes, forces 2 Snappy frames) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
New vectors
Why this matters
The original vectors proved the framing layer works for arbitrary data. These prove it works for the actual protocol messages that travel between consensus clients —
Statusfor handshake andBlocksByRootRequestfor block sync.Test plan
uvx tox -e all-checkspassesuv run fill --fork=devnet --clean -n auto -- tests/consensus/devnet/networking/generates all 113 fixtures🤖 Generated with Claude Code