Skip to content

feat(cli): add reth download config options - #23513

Merged
Rjected merged 1 commit into
mainfrom
dan/good-download-config-options
Apr 15, 2026
Merged

feat(cli): add reth download config options#23513
Rjected merged 1 commit into
mainfrom
dan/good-download-config-options

Conversation

@Rjected

@Rjected Rjected commented Apr 14, 2026

Copy link
Copy Markdown
Member

Fixes #23456

Adds explicit range-based reth download flags 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 last N blocks.
  • --with-receipts-since <BLOCK_NUMBER>: download receipt static files starting at the given block.
  • --with-receipts-distance <BLOCKS>: download receipt static files for the last N blocks.
  • --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 last N blocks.

@Rjected Rjected added the C-enhancement New feature or request label Apr 14, 2026
@Rjected
Rjected requested a review from mattsse as a code owner April 14, 2026 18:44
@Rjected Rjected added the A-cli Related to the reth CLI label Apr 14, 2026
@Rjected
Rjected requested a review from gakonst as a code owner April 14, 2026 18:44
@github-project-automation github-project-automation Bot moved this to Backlog in Reth Tracker Apr 14, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to In Progress in Reth Tracker Apr 15, 2026
@Rjected
Rjected added this pull request to the merge queue Apr 15, 2026
Merged via the queue into main with commit f451ad5 Apr 15, 2026
37 checks passed
@Rjected
Rjected deleted the dan/good-download-config-options branch April 15, 2026 20:34
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Reth Tracker 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Related to the reth CLI C-enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

feat(cli): Allow --with-txs with download --full

2 participants