|
|
@ -46,9 +46,9 @@ func EnableEIP(eipNum int, jt *JumpTable) error { |
|
|
|
// - Define SELFBALANCE, with cost GasFastStep (5)
|
|
|
|
// - Define SELFBALANCE, with cost GasFastStep (5)
|
|
|
|
func enable1884(jt *JumpTable) { |
|
|
|
func enable1884(jt *JumpTable) { |
|
|
|
// Gas cost changes
|
|
|
|
// Gas cost changes
|
|
|
|
|
|
|
|
jt[SLOAD].constantGas = params.SloadGasEIP1884 |
|
|
|
jt[BALANCE].constantGas = params.BalanceGasEIP1884 |
|
|
|
jt[BALANCE].constantGas = params.BalanceGasEIP1884 |
|
|
|
jt[EXTCODEHASH].constantGas = params.ExtcodeHashGasEIP1884 |
|
|
|
jt[EXTCODEHASH].constantGas = params.ExtcodeHashGasEIP1884 |
|
|
|
jt[SLOAD].constantGas = params.SloadGasEIP1884 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// New opcode
|
|
|
|
// New opcode
|
|
|
|
jt[SELFBALANCE] = operation{ |
|
|
|
jt[SELFBALANCE] = operation{ |
|
|
@ -88,5 +88,6 @@ func opChainID(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memo |
|
|
|
|
|
|
|
|
|
|
|
// enable2200 applies EIP-2200 (Rebalance net-metered SSTORE)
|
|
|
|
// enable2200 applies EIP-2200 (Rebalance net-metered SSTORE)
|
|
|
|
func enable2200(jt *JumpTable) { |
|
|
|
func enable2200(jt *JumpTable) { |
|
|
|
|
|
|
|
jt[SLOAD].constantGas = params.SloadGasEIP2200 |
|
|
|
jt[SSTORE].dynamicGas = gasSStoreEIP2200 |
|
|
|
jt[SSTORE].dynamicGas = gasSStoreEIP2200 |
|
|
|
} |
|
|
|
} |
|
|
|