Discussion topic for
This was suggested during the discussion of EIP-2315: EIP-2315 "Simple Subroutines for the EVM" - Analysis - #35 by chfast
Enforce a maximum size limit (
initcode. If the size of
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
0x6000) on contract code. We propose to also limit the size of executable code to
2xthe above limit, i.e.
This also leads to two nice properties:
- instruction offset in code fits 16-bit value,
- code size fits 16-bit value.