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

[Ceres] Adjust cost for reading stored value #4249

Merged
merged 1 commit into from Jan 22, 2024

Conversation

hanssv
Copy link
Member

@hanssv hanssv commented Jan 16, 2024

Fixes #4197. Reading from the contract store is expensive, we introduced a read cache to avoid the worst cases - still the first time reading an element is expensive (accessing the MPT). We set an approximate cost of 20000 gas; here we adjust to 5000 gas - it should be enough to deflect misuse, but not too big making normal usage overly expensive.

This PR is supported by Æternity Foundation

Copy link
Contributor

@ThomasArts ThomasArts left a comment

Choose a reason for hiding this comment

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

I like the hat this is drawn from :-)

@hanssv hanssv merged commit 0fd31a8 into master Jan 22, 2024
35 checks passed
@hanssv hanssv added the breaking/consensus Consensus breaking change label Jan 22, 2024
@hanssv hanssv deleted the change_fate_state_access_cost branch January 22, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking/consensus Consensus breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ceres (v6) gas consumption much higher than on Iris (v5)
3 participants