feat: Integrate solana-snapshot-finder-go for intelligent snapshot source discovery #152
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
Integrates the
solana-snapshot-finder-golibrary to provide intelligent snapshot source discovery and selection. This replaces the previous snapshot download logic with a two-stage speed testing algorithm that finds the fastest available snapshot sources.Key Features
Intelligent Node Discovery
HTTP Streaming Mode
io.TeeReader(parallel processing + save)save_to_disk=false(default): no disk space required for snapshot filessave_to_disk=true: saves snapshots todownload_pathwhile streamingSmart Incremental Snapshot Selection
min_incremental_speed_mbs) to filter out slow nodesRetry and Cleanup Logic
Configuration
New
[snapshot]section inmithril.tomlwith comprehensive options:See
docs/snapshot.mdfor complete documentation.Dependencies
Requires the updated
solana-snapshot-finder-golibrary with library mode support (PR #6).Test plan
verify-livewith default config (HTTP streaming, no disk save)save_to_disk = trueto verify parallel save works