Skip to content

Conversation

@marcusrein
Copy link
Contributor

Adds use_archive config option to control archive (CAR file) usage in Solana extraction.

Modes:

  • always (default): Always use archive - maintains backwards compatibility
  • auto: Smart selection - RPC for recent slots (last 10k), archive for historical
  • never: RPC-only mode - skip archive downloads entirely

Why:
Enables fast iteration and testing by allowing alternative to large archive downloads.

Example:

kind = "solana"                                                                                                                                         
use_archive = "never"  # RPC-only instead of large CAR file               

@marcusrein marcusrein requested review from LNSD and fordN January 23, 2026 12:18
@sistemd sistemd self-requested a review January 23, 2026 12:36
@marcusrein marcusrein force-pushed the marcus/solana-rpc-only-mode branch from 31e22b5 to 642494d Compare January 23, 2026 14:07
marcusrein and others added 4 commits January 23, 2026 09:10
…traction

- Introduced `UseArchive` enum to manage archive usage modes: `auto`, `always`, and `never`.
- Updated `SolanaExtractor` to utilize the new `use_archive` configuration, allowing for smart selection of data extraction methods based on slot age.
- Enhanced block streaming logic to conditionally use RPC-only mode or archive mode based on the selected archive strategy.
- Updated documentation to reflect the new configuration option and its implications for data extraction.

This change improves flexibility in data extraction strategies for the Solana blockchain.
- Updated the `UseArchive` enum to set the `Always` variant as the default instead of `Auto`.
- This change ensures that the default behavior aligns with the intended usage of archive data extraction.

This fix improves clarity in the configuration of archive usage modes for the Solana extractor.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@marcusrein marcusrein force-pushed the marcus/solana-rpc-only-mode branch from b3a986a to fd62f75 Compare January 23, 2026 14:11
@marcusrein marcusrein merged commit b555710 into main Jan 23, 2026
8 checks passed
@marcusrein marcusrein deleted the marcus/solana-rpc-only-mode branch January 23, 2026 14:12
cmwhited pushed a commit that referenced this pull request Jan 23, 2026
- Introduced `UseArchive` enum to manage archive usage modes: `auto`, `always`, and `never`.
- Updated `SolanaExtractor` to utilize the new `use_archive` configuration, allowing for smart selection of data extraction methods based on slot age.
- Enhanced block streaming logic to conditionally use RPC-only mode or archive mode based on the selected archive strategy.
- Updated documentation to reflect the new configuration option and its implications for data extraction.

This change improves flexibility in data extraction strategies for the Solana blockchain.

* fix(solana-extractor): correct default variant in UseArchive enum

- Updated the `UseArchive` enum to set the `Always` variant as the default instead of `Auto`.
- This change ensures that the default behavior aligns with the intended usage of archive data extraction.

This fix improves clarity in the configuration of archive usage modes for the Solana extractor.

* fix(docs): update default value for `use_archive` in Solana provider documentation

* Clippy fix to pass CI build error

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

3 participants