-
Notifications
You must be signed in to change notification settings - Fork 70
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: Better state expiration support for getLedgerEntry
#1010
Comments
getLedgetEntry
getLedgerEntry
Related, as a more-immediate workaround: stellar/js-soroban-client#153 |
I don't believe that In the future, when the RPC would want to provide the "information" that the entry has expired, but wouldn't know when, it could return ExpirationLedger == 0, which would align with the existing logic. |
sounds good, so, the net change would reduce to just new 👍
with additional behavior of:
|
If it returns, the LE definitely has an expiration. The only question is whether a value of 0 is the right way to say "I don't know which ledger sequence it was expired upon" or whether we should find another way to achieve that. |
ok, is there a provision in spec for any type of LE's to not expire, and therefore have no expiration ledger, where |
of course. only contract_data and contract_code would expire.. all the rest of the entries have no expiration associated with them ( at least for now ). |
Currently
getLedgerEntry
endpoint just returns the LE XDR, which now doesn't have the expiration-related info.Instead it probably should:
EXPIRATION
entry), when applicableThis would make the behavior consistent with simulation, where we already do fetch and mark the restored entries (when available).
The text was updated successfully, but these errors were encountered: