3 Commits

Author SHA1 Message Date
vbuterin
c506f8ee11
Optional access lists (#2930)
Adds a transaction type which contains an access list, a list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive. Intended as a mitigation to contract breakage risks introduced by EIP 2929 and simultaneously a stepping stone toward broader use of access lists in other contexts.
2020-09-02 10:02:59 +08:00
vbuterin
12e25bb307
Fixes to EIP 2929 formatting
Thanks to @lightclient and @MicahZoltu for all the suggestions/fixes!
2020-09-02 09:32:55 +08:00
vbuterin
e7ffa279c4
Gas cost increases for state access opcodes (#2929)
Increase the gas cost of SLOAD to 2100, and the CALL opcode family, BALANCE and the EXT* opcode family to 2600. Exempts (i) precompiles, and (ii) addresses and storage slots that have already been accessed in the same transaction. Additionally reforms SSTORE metering and SELFDESTRUCT to ensure "de-facto storage loads" inherent in those opcodes are priced correctly.
2020-09-02 00:11:28 +08:00