Skip to content

Conversation

sashass1315
Copy link
Contributor

  • Replace direct per-byte gas multiplications with an overflow-safe helper using bits.Mul64.
  • Apply in Get, Set, and gasIterator.consumeSeekGas for key and value sizes.
  • On overflow, pass math.MaxUint64 to GasMeter to trigger proper handling instead of silent wraparound.
  • Keeps descriptors and existing gas semantics; prevents undercharging when GasConfig is customized.

@aljo242
Copy link
Contributor

aljo242 commented Oct 14, 2025

You should open an issue for tracking purposes of this work and detail what we gain etc for the change

this should be tested and have justification

@aljo242 aljo242 closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants