EIP-7907: Meter Contract Code Size And Increase Limit

discussions-to for EIP-7907: Meter Contract Code Size And Increase Limit

(original PR: Add EIP: Meter Contract Code Size And Increase Limit by charles-cooper · Pull Request #9483 · ethereum/EIPs · GitHub)

2 Likes

I performed jumpdest analysis benchmarks for eip 7903, which are relevant here.

1 Like

Twitter is cheering up.

But this incentivises tha lazy inclusion of libraries and goes against the principle of maximum reuse of what is already deployed on chain.

Ofc, the question is whether there is even a common agreement on such a principle of deployed code reusability.

If the account is warm, no change to the gas schedule occurs.

The account being warm doesn’t mean the code is loaded:

  • Access Lists: account will be warm if added to access list but no code is pre-loaded just the account (including codehash).
  • EXTCODEHASH also warms the account but doesn’t load the code

Other actions loading the code are not included in the pricing:

  • EXTCODESIZE loads the code
  • Basic tx calling a contract also loads code, but isn’t in the pricing

Do you need to add all these to pricing, or add as second “warm” list that records if code is loaded?