Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

More precise gasWanted #1161

Description

@tomtau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions