Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions EIPS/eip-2935.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ This address is currently exempt from [EIP-158](./eip-158.md) cleanup in Kaustin
* While the clients are expected to directly read from state (or maintain and serve from memory) to resolve BLOCKHASH opcode, this contract's `get` could be invoked by transaction (via another contract or directly) leading to a normal contract execution (and gas consumption) as per the semantics of the contract call.


### Gas costs and witnesses
### Gas costs

Since now `BLOCKHASH` is served from state, the clients now **additionally** charge the corresponding warm or cold `SLOAD` costs. For verkle based networks this would imply doing and bundling corresponding accesses (and gas charges) of `SLOAD`.
Gas cost for `BLOCKHASH` opcode remains unchanged and is equal to `20`.

## Rationale

Expand All @@ -206,7 +206,7 @@ The cost of doing so is marginal considering the `HISTORY_SERVE_WINDOW` being re

## Backwards Compatibility

The behavior of `BLOCKHASH` opcode gets extended in backward compatible manner as the history it can serve will get extended upto `HISTORY_SERVE_WINDOW` on the fork block. However the gas charges will also get bumped as per the additional `SLOAD` costs.
The behavior of `BLOCKHASH` opcode gets extended in backward compatible manner as the history it can serve will get extended upto `HISTORY_SERVE_WINDOW` on the fork block.

## Test Cases

Expand Down