-
Notifications
You must be signed in to change notification settings - Fork 814
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
Bump max wasm file size to 2MB #727
Conversation
app/app.go
Outdated
@@ -1578,5 +1578,5 @@ func (app *App) decorateContextWithDexMemState(base context.Context) context.Con | |||
|
|||
func init() { | |||
// override max wasm size to 1MB | |||
wasmtypes.MaxWasmSize = 1024 * 1024 | |||
wasmtypes.MaxWasmSize = 1280 * 1024 |
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.
any particular reason to choose this number vs. maybe just 2MB? also the comment above needs to be updated
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.
+1
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.
I'm inclined not to bump the uploadable wasm size too much as larger wasm file has negative impact on chain performance. Choosing this number to unblock Levana. We can also make a chain upgrade to adjust the param here, but let me know if you have a different thought
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.
will bump it to 2MB for now
|
Describe your changes and provide context
This change bumps the maximal uploadable wasm file size from 1024 * 1024 to 1280 * 1024.
Testing performed to validate your change