Skip to content

Proposal to add EIP-5022 to Shanghai #519

@greenlucid

Description

@greenlucid

EIP-5022 link ethereum/EIPs#5022

tl;dr

Increase SSTORE when zero -> non-zero to 40_000 gas

why

SSTORE is not priced correctly, its cost is way higher than its pricing.
Also, with ethereum/EIPs#4844, rollup data won't even be competing with SSTOREs because they will be priced differently, which will not allow to slow down state growth.

why not do it better (state expiry, 1559-like SSTORE pricing, state rent...)

Because that wouldn't be fast enough to be included in a fork as soon as possible. The cost of SSTOREs for the network is too different from its pricing

can this be done fast?

Yes. Opcode gas repricing has been done in the past, and even though the implementation is always manual, it is always streamlined. This is why this is a good contender for Shanghai inclusion, or even before.

could this be done before Shanghai?

I would advocate to have this added on the merge or the (likely) difficulty bomb push before the merge, since a short term solution for state growth is needed. Shanghai appears to be a big fork. Waiting to get this included in Shanghai will mean another year or so of the network subsidizing SSTOREs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions