Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

More precise gasWanted #1287

tomtau started this conversation in Ideas
Discussion options

Proposal:
Use more precise bounds for gasWanted via constant time estimates and/or linear time amortization analysis.

Current behavior:
Right now, it uses the user's set gas limit or capping it by an arbitrary number:

gasWanted += txData.GetGas()

In the future with ABCI++, it may be possible to use gasUsed, but that's not possible now.

Desired behavior:
Ideally, Ethermint could use more tighter bounds without the full EVM execution:

Use case:

  • better block utilization
  • less likely to go over the maximum block gas limit

Requests may be closed if we're not actively planning to work on them.

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1161 on August 23, 2022 10:00.

AltStyle によって変換されたページ (->オリジナル) /