-
Notifications
You must be signed in to change notification settings - Fork 21
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
soroban-rpc: Replace getLedgerEntry
with getLedgerEntries
#48
Comments
Have we considered adding Just a thought. |
Instead of modifying EDIT: I haven't gotten into the details but the json-rpc 2.0 spec does support batching and that's implemented in jrpc2. Batching is also supported by geth. |
+1 for batching support in future, but (I'd assume) that's a bigger lift. There's no reason not to do both Edit: Based on the docs for the jsonrpc server we're using, it supports batching out-of-the-box, but doesn't give any way to guarantee atomicity withing a batch. So, we would need to rework the jsonrpc server, and refactor the database transaction handling to support that.
|
Created #28 to work on atomicity within batches |
Closing in favor of #28 |
What problem does your feature solve?
Currently, to fetch multiple ledger entries you have to issue multiple
getLedgerEntry
calls, and you might get them as of multiple ledger states.What would you like to see?
Replacing:
with:
If any of the keys are not found they should be put as
null
into the output fields. This is so the client can pair up the requested keys with their results.We will need to:
What alternatives are there?
The text was updated successfully, but these errors were encountered: