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

fix: Increase the max gas limit to 10000M. #1901

Closed
wants to merge 1 commit into from

Conversation

ajnavarro
Copy link
Contributor

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...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

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]>
@github-actions github-actions bot added the 📦 🌐 tendermint v2 Issues or PRs tm2 related label Apr 8, 2024
@ajnavarro ajnavarro changed the title Increase the max gas limit to 10000M. fix: Increase the max gas limit to 10000M. Apr 8, 2024
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.74%. Comparing base (1f14e7b) to head (5b464b3).
Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@r3v4s
Copy link
Contributor

r3v4s commented Apr 8, 2024

Shouldn't we need to change these lines too??

MaxGas: 100_000_000, // 10M gas

MaxGas: 10_0000_00, // 10M gas

MaxGas: 10_0000_000, // 10M gas

@ajnavarro
Copy link
Contributor Author

Superseded by #1902

@ajnavarro ajnavarro closed this Apr 8, 2024
zivkovicmilos pushed a commit that referenced this pull request May 15, 2024
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>
leohhhn pushed a commit to leohhhn/gno that referenced this pull request May 21, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants