mirror of https://github.com/status-im/EIPs.git
Add parameters
This commit is contained in:
parent
71d6f0bc9c
commit
31be04a215
|
@ -8,20 +8,24 @@ Category: Core
|
|||
Status: Final
|
||||
Created: 2016-09-24
|
||||
```
|
||||
### Parameters
|
||||
|
||||
- `FORK_BLKNUM`: 1 ([Homestead](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-606.md))
|
||||
- `CHAIN_ID`: 1
|
||||
|
||||
### Specification
|
||||
|
||||
If `block.number >= FORK_BLKNUM`, then:
|
||||
- Increase the gas cost of EXTCODESIZE to 700
|
||||
- Increase the base gas cost of EXTCODECOPY to 700
|
||||
- Increase the gas cost of BALANCE to 400
|
||||
- Increase the gas cost of SLOAD to 200
|
||||
- Increase the gas cost of CALL, DELEGATECALL, CALLCODE to 700
|
||||
- Increase the gas cost of SELFDESTRUCT to 5000
|
||||
- If SELFDESTRUCT hits a newly created account, it triggers an additional gas cost of 25000 (similar to CALLs)
|
||||
- Increase the recommended gas limit target to 5.5 million
|
||||
- Define "all but one 64th" of `N` as `N - floor(N / 64)`
|
||||
- If a call asks for more gas than the maximum allowed amount (ie. total amount of gas remaining in the parent after subtracting the gas cost of the call and memory expansion), do not return an OOG error; instead, if a call asks for more gas than all but one 64th of the maximum allowed amount, call with all but one 64th of the maximum allowed amount of gas (this is equivalent to a version of EIP-90<sup>[1](https://github.com/ethereum/EIPs/issues/90)</sup> plus EIP-114<sup>[2](https://github.com/ethereum/EIPs/issues/114)</sup>). CREATE only provides all but one 64th of the parent gas to the child call.
|
||||
- Increase the gas cost of EXTCODESIZE to 700.
|
||||
- Increase the base gas cost of EXTCODECOPY to 700.
|
||||
- Increase the gas cost of BALANCE to 400.
|
||||
- Increase the gas cost of SLOAD to 200.
|
||||
- Increase the gas cost of CALL, DELEGATECALL, CALLCODE to 700.
|
||||
- Increase the gas cost of SELFDESTRUCT to 5000.
|
||||
- If SELFDESTRUCT hits a newly created account, it triggers an additional gas cost of 25000 (similar to CALLs).
|
||||
- Increase the recommended gas limit target to 5.5 million.
|
||||
- Define "all but one 64th" of `N` as `N - floor(N / 64)`.
|
||||
- If a call asks for more gas than the maximum allowed amount (i.e. the total amount of gas remaining in the parent after subtracting the gas cost of the call and memory expansion), do not return an OOG error; instead, if a call asks for more gas than all but one 64th of the maximum allowed amount, call with all but one 64th of the maximum allowed amount of gas (this is equivalent to a version of EIP-90<sup>[1](https://github.com/ethereum/EIPs/issues/90)</sup> plus EIP-114<sup>[2](https://github.com/ethereum/EIPs/issues/114)</sup>). CREATE only provides all but one 64th of the parent gas to the child call.
|
||||
|
||||
That is, substitute:
|
||||
|
||||
|
|
Loading…
Reference in New Issue