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

Merge 2.1.2 and 2.1.3 release changes #2204

Merged
merged 10 commits into from
Aug 12, 2024
Merged

Merge 2.1.2 and 2.1.3 release changes #2204

merged 10 commits into from
Aug 12, 2024

Conversation

chipshort
Copy link
Collaborator

Also added a note to the cost function

//
// Please note that any changes to this function need to be accompanied by a bump of
// `MODULE_SERIALIZATION_VERSION` to avoid cached modules from using different amounts of gas
// compared to newly compiled ones.
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

Now I was wondering if/how we can turn this function into something we can hash and add to the caching path. Either by serializing the function (some scripting language) or serialize the op -> cost as a table/map. Could you create a ticket for that as mid or long-term improvement?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was also wondering if we can test the cache compatibility by having a test with a cache folder with one wasm + module file inside and testing that it can be executed and works as expected (same gas, etc.).
That would probably catch some panics on the wasmer side and if we assert gas, also gas cost changes.

@chipshort chipshort merged commit b8f7c9e into main Aug 12, 2024
32 checks passed
@chipshort chipshort deleted the co/add-note-to-cost-fn branch August 12, 2024 08:33
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