core/vm: use dedicated SLOAD gas constant for EIP-2200 (#20646)

This commit is contained in:
Gregory Markou
2020-02-18 06:07:41 -08:00
committed by GitHub
parent 529b81dadb
commit 4be8840120
2 changed files with 3 additions and 1 deletions

View File

@ -90,6 +90,7 @@ const (
SloadGasFrontier uint64 = 50
SloadGasEIP150 uint64 = 200
SloadGasEIP1884 uint64 = 800 // Cost of SLOAD after EIP 1884 (part of Istanbul)
SloadGasEIP2200 uint64 = 800 // Cost of SLOAD after EIP 2200 (part of Istanbul)
ExtcodeHashGasConstantinople uint64 = 400 // Cost of EXTCODEHASH (introduced in Constantinople)
ExtcodeHashGasEIP1884 uint64 = 700 // Cost of EXTCODEHASH after EIP 1884 (part in Istanbul)
SelfdestructGasEIP150 uint64 = 5000 // Cost of SELFDESTRUCT post EIP 150 (Tangerine)