feat: add UDP shredstream provider for raw shred-level benchmarking#12
Open
polyphia wants to merge 1 commit intosolstackapp:mainfrom
Open
feat: add UDP shredstream provider for raw shred-level benchmarking#12polyphia wants to merge 1 commit intosolstackapp:mainfrom
polyphia wants to merge 1 commit intosolstackapp:mainfrom
Conversation
Adds a new UdpShredstream endpoint type that receives raw UDP shred packets, performs FEC recovery and deshredding to extract transactions directly from the validator's turbine layer — bypassing gRPC entirely. New files: - src/providers/udp_shredstream.rs: UDP socket listener with SO_REUSEPORT, multi-socket binding, and shred-to-transaction pipeline - src/deshred.rs: Shred decoding, FEC recovery via solana-ledger reed-solomon, and entry deserialization Changes to existing files: - config.rs: UdpShredstream variant in EndpointKind enum - providers/mod.rs: Wire up new provider in create_provider() - backend.rs: Map UdpShredstream kind to "shredstream" for backend compat, wrap bare socket addresses as udp:// URLs, skip URL parsing for UDP endpoints - main.rs: Add jemalloc allocator, drain signature forwarder before backend finalization, skip finalization when no cross-endpoint signatures collected - Cargo.toml: Add solana-ledger (jito fork), solana-sdk/perf/streamer/net-utils/ metrics, socket2, tikv-jemallocator, and release profile optimizations
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
UdpShredstreamendpoint type that receives raw UDP shred packets directly from a shredstream proxy, performs FEC recovery and deshredding to extract transactions from the validator's turbine layer — bypassing gRPC entirelyshredstreamkind and wraps bare socket addresses asudp://URLs so the backend server accepts themNew files
src/providers/udp_shredstream.rs— UDP socket listener withSO_REUSEPORT, multi-socket binding, and shred-to-transaction pipelinesrc/deshred.rs— Shred decoding, FEC recovery viasolana-ledgerreed-solomon, and entry deserializationConfig example
Dependencies added
solana-ledger(jito fork for merkle shred recovery),solana-sdk,solana-perf,solana-streamer,solana-net-utils,solana-metricssocket2,tikv-jemallocator,ahash,itertools,crossbeam-channel,rand