[Bug]: gas consumption inaccuracy of gaskv
's iterator #15854
Open
Description
opened on Apr 17, 2023
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
Steps to Reproduce
Metadata
Assignees
Type
Projects
Status
📋 Backlog
Activity