Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Replace database-backed getLedgerEntries with high-performance Core server #353

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Jan 28, 2025

What

This introduces STELLAR_CAPTIVE_CORE_HTTP_QUERY_PORT, enabling a high-performance HTTP server on the Captive Core subprocess for fetching ledger entries.

This new endpoint is plumbed all the way through the getLedgerEntries handler, removing those database queries entirely.

This also updates the stellar/go monorepo reference and its cascading dependencies.

Why

With CAP-66 arriving in Protocol 23 and its high-performance /getledgerentry endpoint (whose client was implemented in stellar/go#5542), we don't need to store ledger entries in RPC anymore.

Today, we still need to provide snapshots to the simulation library, but tomorrow (in the opaque sense) we won't need to, so this is part of the transition work.

Related: #269.

Known limitations

TODO:

@Shaptic
Copy link
Contributor Author

Shaptic commented Jan 28, 2025

@2opremio this should probably target a new feature branch e.g. protocol-23 🙏

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.

1 participant