Skip to content

indexer: support testnet Solana RPC URL for shred-subscription reads#670

Merged
nikw9944 merged 1 commit into
mainfrom
shreds-testnet-solana-rpc
Jul 1, 2026
Merged

indexer: support testnet Solana RPC URL for shred-subscription reads#670
nikw9944 merged 1 commit into
mainfrom
shreds-testnet-solana-rpc

Conversation

@nikw9944

@nikw9944 nikw9944 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Adds a 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; 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_TESTNET on 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 in lake-indexer-env and 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 existing dim_dz_shred_* / fact_dz_shred_escrow_events rows are untouched. The only visible change in prod is the added rpc_url log 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.

@nikw9944 nikw9944 force-pushed the shreds-testnet-solana-rpc branch from 0630ac2 to ff9b90a Compare June 29, 2026 19:17
@nikw9944 nikw9944 changed the title indexer: support per-env Solana RPC URL for shred-subscription reads indexer: support testnet Solana RPC URL for shred-subscription reads Jun 29, 2026
@nikw9944 nikw9944 force-pushed the shreds-testnet-solana-rpc branch from ff9b90a to d4e719c Compare June 29, 2026 19:19
@nikw9944 nikw9944 force-pushed the shreds-testnet-solana-rpc branch from d4e719c to 2cd34ba Compare July 1, 2026 16:38
@nikw9944 nikw9944 enabled auto-merge (squash) July 1, 2026 16:39
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).
@nikw9944 nikw9944 force-pushed the shreds-testnet-solana-rpc branch from 2cd34ba to 17fddf1 Compare July 1, 2026 17:02
@nikw9944 nikw9944 merged commit 5fc6c9a into main Jul 1, 2026
11 of 12 checks passed
@nikw9944 nikw9944 deleted the shreds-testnet-solana-rpc branch July 1, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants