feat(cli): add reth download config options - #23513
Merged
Merged
Conversation
mattsse
approved these changes
Apr 15, 2026
decofe
added a commit
that referenced
this pull request
Apr 16, 2026
Merges main into the PR branch. Resolves conflicts in download/mod.rs by keeping the modular file structure and porting main's new features: - --with-*-since/--with-*-distance CLI args (from #23513) - ComponentSelection::Since handling in selection_from_prune_mode and full_selection_for_component - explicit_component_selection helper for range-based selection The static_files_dir remap feature (#23445) needs a follow-up commit to thread through the extraction and verification submodules. Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com> Amp-Thread-ID: https://ampcode.com/threads/T-019d96ed-1d5f-743e-a3b7-57a04103644b
This was referenced Apr 16, 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.
Fixes #23456
Adds explicit range-based
reth downloadflags that mirror prune-style snapshot selection:--with-txs-since <BLOCK_NUMBER>: download transaction static files starting at the given block.--with-txs-distance <BLOCKS>: download transaction static files for the lastNblocks.--with-receipts-since <BLOCK_NUMBER>: download receipt static files starting at the given block.--with-receipts-distance <BLOCKS>: download receipt static files for the lastNblocks.--with-state-history-since <BLOCK_NUMBER>: download account/storage history static files starting at the given block.--with-state-history-distance <BLOCKS>: download account/storage history static files for the lastNblocks.