Skip to content

[enhancement]: ancestry --headers accepts an archive directory #25

Open

Description

@samjay8

Context

externalize ancestry needs every ledger-*.xdr.gz file between the target and the certified ledger. Proving a ledger from a week back means about 1,500 files, listed one by one. History archives keep them under ledger/xx/yy/zz/.

Scope

  • Let --headers also take a directory. Walk it recursively and load every file named ledger-????????.xdr.gz.
  • Load only the checkpoints between the target and the certified ledger (archive::checkpoint gives the file for a sequence), so a full mirror isn't read into memory.
  • Keep the "header missing" error naming the ledger, and add the expected file path to it.

Done when

  • A CLI test passes a directory laid out like an archive (ledger/03/dc/a2/…) and proves 64791250.
  • A test shows that files outside the needed range aren't read.
  • The README command table mentions directories.

Comment to be assigned before starting. Read CONTRIBUTING.md for the checks this repository runs.

Activity

  1. added
    enhancement
    complexity:medium
    Stellar Wave
    on Oct 26, 2026
  2. added 3 commits that reference this issue on Oct 26, 2026
    ef8aae8
    50d8dfc
    ea67285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar Wavearea/clicomplexity:mediumenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions