EIP-170: Name the MAX_CODE_SIZE constant (#3790)

This commit is contained in:
Paweł Bylica 2021-09-03 17:38:56 +02:00 committed by GitHub
parent 307cd98640
commit 4a79c79abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,12 +12,13 @@ created: 2016-11-04
[Spurious Dragon](./eip-607.md)
### Parameters
- `MAX_CODE_SIZE`: `0x6000` (`2**14 + 2**13`)
- `FORK_BLKNUM`: 2,675,000
- `CHAIN_ID`: 1 (main net)
- `CHAIN_ID`: 1 (Mainnet)
### Specification
If `block.number >= FORK_BLKNUM`, then if contract creation initialization returns data with length of **more than** `0x6000` (`2**14 + 2**13`) bytes, contract creation fails with an out of gas error.
If `block.number >= FORK_BLKNUM`, then if contract creation initialization returns data with length of **more than** `MAX_CODE_SIZE` bytes, contract creation fails with an out of gas error.
### Rationale