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

non-existent entries should not be metered #4428

Conversation

ThomasBrady
Copy link
Contributor

Description

Resolves https://github.com/stellar/stellar-core-internal/issues/282

Remove optimization that checks whether there is quota remaining for a ledger key before attempting to load the entry from the bucketlist. This ensures that non-existent entries are not metered and result in a nullptr entry in the cache. This will prevent point loads when writing newly created entries post-contract invocation.

Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix and the test! I'll add this to the merge queue once we finish the release.

@SirTyson SirTyson added this pull request to the merge queue Aug 21, 2024
Merged via the queue into stellar:master with commit 0e1cf94 Aug 21, 2024
14 checks passed
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.

2 participants