Skip to content

[Bug]: gas consumption inaccuracy of gaskv's iterator #15854

Open
@tkxkd0159

Description

Summary of Bug

gaskv's iterator consume gas for first key, value when it's initiated(internally Next() in iavl). But after that when it looks for the next key, value using Next(), I don't understand why it consumes gas with the length of the current key and value rather than the length of the next key and value. In this structure, gas is consumed twice for the data length of the first key and value, and gas is not consumed for the data length of the last key and value.

Version

0931193

Steps to Reproduce

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions