-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soroban-rpc: State Expiration (#695)
* Update go for new xdr * WIP -- working on extensions * Implement ExtendLedgerEntry * Disallow access to expired ledgerEntries * update go dep * Include current ledger in expiry * update ledgerEntry tests for new xdr * Add unit test for ExtendEntry * Add test for extending a non-existent ledger entry * Add tests for expired contract entries * Test creating and extending in the same batch * Show expired ledger entries now that core will autobump * Revert "Show expired ledger entries now that core will autobump" This reverts commit b1426a7. * Refactor expiry checking * Replace assert.NotNil with require.NotNil * Clearer naming * better test error checking * Add validation on upserting ledger entrys that the key matches * Simplify UpsertLedgerEntry since key is derived from the entry * Update go dependency to 3f69f56e3743bbd520e4c25f44b8fc49b1b81936
- Loading branch information
Paul Bellamy
authored
Jul 4, 2023
1 parent
910db9a
commit d4f85d4
Showing
7 changed files
with
377 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.