Skip to content

core/vm/runtime: cap regular gas budget at MaxTxGas for Amsterdam - #35301

Merged
rjl493456442 merged 1 commit into
ethereum:masterfrom
cuiweixie:core-vm-runtime-amsterdam-gas-budget
Jul 9, 2026
Merged

core/vm/runtime: cap regular gas budget at MaxTxGas for Amsterdam#35301
rjl493456442 merged 1 commit into
ethereum:masterfrom
cuiweixie:core-vm-runtime-amsterdam-gas-budget

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Cap the regular gas budget to MaxTxGas in runtime.Execute when Amsterdam rules are active.
  • Charge the remainder as inflation gas via NewGasBudget(limit, cfg.GasLimit-limit).

Test plan

  • go test -short ./core/vm/runtime/

@cuiweixie
cuiweixie requested a review from rjl493456442 as a code owner July 5, 2026 02:33
Comment thread core/vm/runtime/runtime.go
Apply the Amsterdam gas budget split in runtime.Execute so regular gas
is limited to MaxTxGas and the remainder is charged as inflation gas.
@cuiweixie
cuiweixie force-pushed the core-vm-runtime-amsterdam-gas-budget branch from 295c055 to 4b0278b Compare July 6, 2026 11:04
@rjl493456442 rjl493456442 added this to the 1.17.5 milestone Jul 9, 2026
@rjl493456442
rjl493456442 merged commit 896a4ab into ethereum:master Jul 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants