sentinel: add multicast publisher worker#3428
Merged
Conversation
44d8b82 to
afa9c99
Compare
snormore
commented
Apr 1, 2026
…sting Add the sentinel binary with a multicast publisher worker that automatically creates multicast publisher users for IBRL validators. Validators are discovered via Solana RPC (getVoteAccounts + getClusterNodes). When --client-filter is set, the validator metadata service is used to enrich with software client info for filtering; enrichment failure is treated as an error rather than silently returning unfiltered data.
afa9c99 to
3b9725a
Compare
packethog
approved these changes
Apr 1, 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.
Summary of Changes
getVoteAccounts+getClusterNodes) rather than the validator metadata API--client-filteris set, the validator metadata service enriches with software client info; enrichment failure errors rather than returning unfiltered data--is-publisherand--not-publishermutually exclusive on the admin find commandThis worker will be used as a library from the offchain repo sentinel instance. An e2e test in this repo will follow in a subsequent PR.
Diff Breakdown
~35% test code; core logic is the poll cycle, Solana RPC reader, and RPC retry/error handling.
Key files (click to expand)
crates/sentinel/src/multicast_publisher.rs— sentinel poll loop,ValidatorListReadertrait,SolanaRpcValidatorListReader(Solana RPC impl), DZ ledger client for user fetch + publisher creation, metadata enrichment for client filteringcrates/sentinel/src/error.rs—SentinelErrortype, retryable RPC error classification,rpc_with_retrywith exponential backoffcrates/sentinel/src/settings.rs— CLI args (--solana-rpc,--client-filter,--validator-metadata-url,--multicast-group-pubkeys)crates/sentinel/src/main.rs— binary entry point, metrics exporter, graceful shutdowncrates/sentinel/src/lib.rs— module registration (error, multicast_publisher, settings)crates/sentinel/Cargo.toml— new dependencies (metrics, tracing, backon, tokio-util, url)Testing Verification
cargo clippyandcargo +nightly fmtclean