EIP Radar
@ 1a086d5 ·
EIP-2677

Limit size of `initcode`

WithdrawnSplurge

Status history

  1. Draft18 May 2020
  2. Withdrawndate not observed

Abstract

Enforce a maximum size limit (max_initcode_size) for initcode. If the size of initcode exceeds max_initcode_size, then contract creation fails with an out of gas error. Since EIP-170 was implemented, there has been a size limit of 24576 (0x6000) on contract code. We propose to also limit the size of executable code to 2x the above limit, i.e. 49152 (0xc000). This also leads to two nice…

Created
18 May 2020
Withdrawn because
Replaced by EIP-3860.
Authors
Martin Holst Swende, Paweł Bylica, Alex Beregszaszi
Upgrades
Not listed in any upgrade
Requires
—
Required by
—