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

Feat(CLI): add key::Args and FullLedgerEntry/FullLedgerEntries #981

Merged
merged 6 commits into from
Sep 22, 2023

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Sep 21, 2023

What

Created a new args struct for creating ledger keys. Also adds a new method and new types to the rpc, which helps return a struct containing an entry's expiration.

  • Improve error handling bump/restore to ensure that checks a keys expiration if it fails to bump. Reporting to user that it was a no-op.

  • Now durability is required, but we could could persistent as the default, as I'm sure it will be for most people.

  • I also picked a max ledgers to bump based on trial and error, but could use on official one.

  • And in the case where the ledger is before the expiration, the current expiration is returned.

  • Also updated read command to return the current expiration, though could use feedback on updating args if needed.

Why

fix #969

Known limitations

[TODO or N/A]

@willemneal willemneal marked this pull request as ready for review September 21, 2023 22:24
@tsachiherman tsachiherman merged commit 3e201ad into stellar:main Sep 22, 2023
21 checks passed
@2opremio 2opremio deleted the feat/add_key_args branch September 24, 2023 09:40
@2opremio 2opremio restored the feat/add_key_args branch September 24, 2023 09:40
@2opremio
Copy link
Contributor

@tsachiherman it seems you merged this with broken integration tests :(

@tsachiherman
Copy link
Contributor

@tsachiherman it seems you merged this with broken integration tests :(

Ahh.. I didn't notice that. I guess we'll need to either pr a fix or revert the change.

@2opremio
Copy link
Contributor

Actually they seem to have passed here but failed when run in main

@2opremio
Copy link
Contributor

See #987 . @willemneal PTAL, I've assigned it to you

@willemneal willemneal deleted the feat/add_key_args branch October 20, 2023 21:06
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.

soroban-cli bump outputs an error while successful
3 participants