Skip to content

Qualify getLedgers history by provider retention#73

Open
kaankacar wants to merge 1 commit into
mainfrom
fix-data-getledgers-retention
Open

Qualify getLedgers history by provider retention#73
kaankacar wants to merge 1 commit into
mainfrom
fix-data-getledgers-retention

Conversation

@kaankacar

Copy link
Copy Markdown
Contributor

Closes #52.

Applies the report, re-verified live while writing the fix: getHealth on the public testnet RPC returned oldestLedger: 3590554, latestLedger: 3711513, ledgerRetentionWindow: 120960, and getLedgers with startLedger: 2 failed with JSON-RPC -32600 — the error text itself says "must be between the oldest ledger ... for this rpc instance", which is the whole point: deep history is a property of the provider's data-lake integration, not of the method.

All four "back to genesis" references are qualified (RPC limitations bullet, the historical-data code comment, the Historical Data Access intro, and the Data Lake section), and per the issue's recommendation the code example now checks getHealth().oldestLedger before paging back.

The skill promised Infinite Scroll back to genesis unconditionally.
Reality, reproduced live against the public testnet RPC while writing
this: getHealth reports oldestLedger/ledgerRetentionWindow, and
getLedgers with startLedger=2 fails with -32600 ('must be between the
oldest ledger ... for this rpc instance'). Deep history is a property
of the provider's data-lake integration, not of the method.

All four references now say so, and the historical-data example
checks getHealth().oldestLedger before paging back.

Closes #52.
Copilot AI review requested due to automatic review settings July 20, 2026 19:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://stellar.github.io/stellar-dev-skill/pr/pr-73/

Built to branch gh-pages at 2026-07-20 19:19 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

sk-003: The data skill promises getLedgers history back to genesis despite provider retention limits

2 participants