Skip to content

Update EIP-8038: Preliminary Accounting Changes#11826

Draft
Helkomine wants to merge 5 commits into
ethereum:masterfrom
Helkomine:patch-2
Draft

Update EIP-8038: Preliminary Accounting Changes#11826
Helkomine wants to merge 5 commits into
ethereum:masterfrom
Helkomine:patch-2

Conversation

@Helkomine

@Helkomine Helkomine commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This update introduces a set of revised accounting mechanisms while preserving the opcode pricing values previously established by EIP-8038:

  • Warm access costs are split into WARM_ACCESS and LOW_WARM_ACCESS to more accurately reflect the cost of warm state accesses. WARM_ACCESS represents the cost associated with handling potential REVERT paths, while LOW_WARM_ACCESS represents the cost of read-only operations.
  • Warm-access charges are moved into the base opcode cost. This mandatory cost covers cache operation and revert handling for every invocation. Cold-access charges are treated separately and are only the cost of making state available to execution. Consequently, charging rules of the form COLD_ACCOUNT_ACCESS or WARM_ACCESS become WARM_ACCESS + surcharge COLD_ACCOUNT_ACCESS
  • A new counter, state_access_gas_reservoir, is introduced to replace the refund counter removed by EIP-7778. Its design is analogous to the state_gas_reservoir mechanism introduced by EIP-8037.
  • Two new global sets, balance_updated and account_updated, are introduced to track account update status more precisely. These sets enable refund accounting for account modifications (CREATE*, *CALL) in a manner analogous to SSTORE.
  • Operations such as CREATE* and *CALL with transfer value are charged pessimistically. The maximum state-access charge is paid upfront and may subsequently be refunded when entering the corresponding execution frame if the required conditions are satisfied.

@github-actions github-actions Bot added c-update Modifies an existing proposal s-draft This EIP is a Draft t-core labels Jun 23, 2026
@eth-bot

eth-bot commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

File EIPS/eip-8038.md

Requires 1 more review from Authors: @adietrichs, @misilva73, @weiihann

@Helkomine Helkomine changed the title Update EIP-8038: Update to EIP-8038: Preliminary Accounting Changes Update EIP-8038: Preliminary Accounting Changes Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a-review Waiting on author to review c-update Modifies an existing proposal s-draft This EIP is a Draft t-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants