-
Notifications
You must be signed in to change notification settings - Fork 379
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: set MAX VM cycles from cli #828
Conversation
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.
Hey @ajnavarro, I agree that we should make this editable. However, there are a few things to keep in mind:
- In the future, the value won't be dynamically determined by the node itself. Instead, it will be a variable derived from the genesis configuration. This variable can be updated through DAO votes in a new
r/system/variables
realm (Creating ar/sys/config
realm for runtime configuration #1856). You can find more information about this in the following link: Include max memory size of GVM in genesis parameters? #761 (comment). - Our goal is to simplify the configuration process by introducing variables that can be set in both config files and the command-line interface (CLI). This will eliminate the need for concurrent implementation of configuration. For more details, please refer to this pull request: feat(cli): add listen flag #729 (review). Additionally, you can explore issue CLI refactor #731 for further information.
Here's my suggestion for the next steps:
- Wait for the completion of the merge for both feat: add support for toml configuration files + recursive flag definitions for subcommands #827 and fix(cli): accept flags after command's arguments #762 (which will likely happen today).
- Once those are merged, proceed by updating the commands package to automatically register flags for available configuration files. You can find more details in issue CLI refactor #731.
- Finally, add your new flag, but make sure to give it a name that reflects its purpose as the
GenesisMaxVMCycle
rather than just theMAX_VM_CYCLE
.
reading now |
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.
pre-approving besides existing comments.
Before this change, some VM operations like loading a package or calling a public realm method had a hardcoded limit of 10M max allowed cycles. Whith this change that limit can be modified. Signed-off-by: Antonio Navarro <[email protected]>
Signed-off-by: Antonio Navarro Perez <[email protected]>
b108d5f
to
4c85bdf
Compare
@moul addressed all your comments! |
Thank you Antonio! |
Description
Before this change, some VM operations like loading a package or calling a public realm method had a hardcoded limit of 10M max allowed cycles. With this change that limit can be modified.
Usage:
gnoland --max-vm-cycles=0
It closes #821
Contributors Checklist
BREAKING CHANGE: xxx
message was included in the description