besu
besu copied to clipboard
Update EIP-4762 gas costs accordingly
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.