indexer: support testnet Solana RPC URL for shred-subscription reads#670
Merged
Conversation
0630ac2 to
ff9b90a
Compare
ff9b90a to
d4e719c
Compare
karl-dz
approved these changes
Jul 1, 2026
d4e719c to
2cd34ba
Compare
Adds SOLANA_RPC_URL_TESTNET env var to the secondary network indexer, mirroring the existing DZ_LEDGER_RPC_URL_TESTNET pattern. When set, the shred-subscription client reads from this endpoint instead of the DZ ledger. Backward-compatible: when unset, shreds continues to read from the DZ ledger as today. Prep for malbeclabs/infra#1762: testnet shred-subscription moves to Solana devnet via a paid Helius endpoint, in lockstep with the shred-oracle cutover (#1760).
2cd34ba to
17fddf1
Compare
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
Adds a
SOLANA_RPC_URL_TESTNETenv var to the secondary network indexer, mirroring the existingDZ_LEDGER_RPC_URL_TESTNETpattern. When set, the shred-subscription client reads from this endpoint; when unset it falls back to the DZ ledger (today's behavior). Serviceability, telemetry, and geolocation read paths are unaffected.Context (parent issue)
Part of malbeclabs/infra#1762 / epic #1758. The testnet shred-subscription program is moving from the DZ Ledger testnet to a Solana devnet deployment, in lockstep with the shred-oracle cutover.
This is the Phase 1 read-path change, kept off the critical path so it can bake in prod ahead of the coordinated flip. The flip itself is a separate infra step: setting
SOLANA_RPC_URL_TESTNETon the lake-indexer Deployment in lockstep with the oracle overlay removal.Why merging + promoting to prod has no impact
The new behavior is gated on
SOLANA_RPC_URL_TESTNET, which is not set on the prod Deployment or inlake-indexer-envand has no default. Unset, the RPC selection resolves to the same DZ-ledger endpoint used today. This is a read-path-only change: no schema, migrations, or write path, so existingdim_dz_shred_*/fact_dz_shred_escrow_eventsrows are untouched. The only visible change in prod is the addedrpc_urllog field, which will show the current DZ-ledger URL — confirming behavior is unchanged.Rollback
Revert the commit. The env var is additive and only consumed when set; no state migration.