Skip to content

Conversation

qizhou
Copy link
Owner

@qizhou qizhou commented Apr 30, 2025

  • Add code hash to code size mapping in db with code size prefix
  • Add address code access list entry in the journal
  • Change gas metering of CALL* and EXTCODECOPY opcode
    • If the address code is warm, then 100 gas is charged as before
    • If the address code is code, then extra gas = max(0, codeSize - 24KB) * 2 // 32 will be charged

@jgresham
Copy link

jgresham commented May 2, 2025

Is this for eip 7903 or 7907 @qizhou? (mentioned 7907 here)

@qizhou
Copy link
Owner Author

qizhou commented May 2, 2025

It is 7907. Thanks for the notice.

@qizhou qizhou changed the title add EIP-7903 add EIP-7907 May 2, 2025
@qizhou
Copy link
Owner Author

qizhou commented May 2, 2025

One missing part of this PR is the extra gas for tx.to and EIP-7702 authorized lists (where in Geth, it will check whether an authority is EOA or not) in pre-validation check of a Tx here

func (st *stateTransition) preCheck() error {

We also need to update the spec accordingly.

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.

2 participants