mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-23 12:18:16 +00:00
EIP-170: Name the MAX_CODE_SIZE constant (#3790)
This commit is contained in:
parent
307cd98640
commit
4a79c79abf
@ -12,12 +12,13 @@ created: 2016-11-04
|
|||||||
[Spurious Dragon](./eip-607.md)
|
[Spurious Dragon](./eip-607.md)
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
- `MAX_CODE_SIZE`: `0x6000` (`2**14 + 2**13`)
|
||||||
- `FORK_BLKNUM`: 2,675,000
|
- `FORK_BLKNUM`: 2,675,000
|
||||||
- `CHAIN_ID`: 1 (main net)
|
- `CHAIN_ID`: 1 (Mainnet)
|
||||||
|
|
||||||
### Specification
|
### 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
|
### Rationale
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user