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

feat: version gate MsgExec limit #4373

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Mar 3, 2025

Closes #4370

@rootulp rootulp self-assigned this Mar 3, 2025
Comment on lines +49 to +62
// Try to determine the app version or use latest
appVersion := getAppVersion(logger, db)

// Create the appropriate encoding configuration based on the app version
var encodingConfig encoding.Config
if appVersion < v3.Version {
// For versions 1 and 2, use the standard encoding config without recursion limits
logger.Info("Using standard encoding config without recursion limits", "app_version", appVersion)
encodingConfig = encoding.MakeConfig(app.ModuleEncodingRegisters...)
} else {
// For version 3+, use the versioned encoding config with recursion limits
logger.Info("Using versioned encoding config with recursion limits", "app_version", appVersion)
encodingConfig = encoding.MakeVersionedConfig(appVersion, app.ModuleEncodingRegisters...)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

would this work as expected? If I only start up once, then I would be using the encodingConfig for version 1 even if I eventually sync up to a height with app version 3 or greater

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 had the same concern. This needs testing

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.

UnpackAny limit exceeded for historical txs
2 participants