besu icon indicating copy to clipboard operation
besu copied to clipboard

Update EIP-4762 gas costs accordingly

Open lu-pinto opened this issue 6 months ago • 0 comments

Updates made to EIP-4762 through https://github.com/ethereum/EIPs/pull/9780/ need to be reflected into our gas cost charging code mainly in the areas of:

  • JUMP and JUMPI instructions where we don't touch code chunks even if destination is not JUMPDEST
  • realign gas charging atomicity
  • fix cases where whether a write SET or RESET needs to be charged. note: currently this is not implemented yet in clients, however there is a partial implementation in Besu but the SET just gets forwarded to RESET internally.
  • Go through some other cases where comments were left in, e.g. SELFDESTRUCT to see if they are relevant to raise now.

lu-pinto avatar May 19 '25 12:05 lu-pinto