-
Notifications
You must be signed in to change notification settings - Fork 75
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: Ingest temp ledger entry evictions #926
Conversation
I am confused. Doesn’t this duplicate #925 ? |
Also, I am missing a test. |
yes, I worked on this during the morning as a follow up to stellar/go#5037 while not realizing that you were working on the same thing in #925 .
I will probably take the test from #925 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good. I did had quite many comments, but all of these were non-blocking.
What
In stellar/go#5037 temporary ledger entries which are evicted are excluded from the change reader. So, we need to handle the deletions explicitly by the EvictedTemporaryLedgerKeys() method on the LedgerCloseMeta struct.
Known limitations
We aren't able to test eviction of temporary ledger keys through an integration test because stellar-core needs to implement a testing flag to allow evictions to occur more quickly. So instead I have implemented a unit test where I have hard coded a ledger which contains temporary ledger entry evictions.