-
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
fix: Increase the max gas limit to 10000M. #1901
Conversation
We changed the default gas limit to a fixed value on the code. That is causing problems in some realms because the maximum limit is too low. Increasing the limit temporarily until we do some measurements and specifically know what is a sane max limit on gas usage. Signed-off-by: Antonio Navarro <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1901 +/- ##
=======================================
Coverage 47.74% 47.74%
=======================================
Files 393 393
Lines 61629 61629
=======================================
Hits 29424 29424
Misses 29734 29734
Partials 2471 2471 ☔ View full report in Codecov by Sentry. |
Shouldn't we need to change these lines too?? gno/gno.land/pkg/gnoland/node_inmemory.go Line 44 in 69811ff
gno/gno.land/cmd/gnoland/start.go Line 293 in 69811ff
|
Superseded by #1902 |
closes #1788 similar closed pr #1901 This pr bumps 2 maximum limits 1. max block gas 2. max vm cycle AFAIK, to use amount of increased gas, vm cycle also need to be bump too. This is temporarily fix pr until we have clear ways to measure gas usage and vm cycle. <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
…g#2065) closes gnolang#1788 similar closed pr gnolang#1901 This pr bumps 2 maximum limits 1. max block gas 2. max vm cycle AFAIK, to use amount of increased gas, vm cycle also need to be bump too. This is temporarily fix pr until we have clear ways to measure gas usage and vm cycle. <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
We changed the default gas limit to a fixed value on the code.
That is causing problems in some realms because the maximum limit is too low.
Increasing the limit temporarily until we do some measurements and specifically know what is a sane max limit on gas usage.
BREAKING CHANGE: Hardcoded max gas limit changed.
Related: #1873
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description