Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions core/vm/eips.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ package vm

import (
"fmt"

"github.com/ethereum/go-ethereum/params"
// "github.com/ethereum/go-ethereum/params"
)

// EnableEIP enables the given EIP on the config.
Expand All @@ -46,9 +45,11 @@ func EnableEIP(eipNum int, jt *JumpTable) error {
// - Define SELFBALANCE, with cost GasFastStep (5)
func enable1884(jt *JumpTable) {
// Gas cost changes
jt[BALANCE].constantGas = params.BalanceGasEIP1884
jt[EXTCODEHASH].constantGas = params.ExtcodeHashGasEIP1884
jt[SLOAD].constantGas = params.SloadGasEIP1884
// Celo does not include these gas changes at genesis.
// It is planned to apply them at a later date.
// jt[BALANCE].constantGas = params.BalanceGasEIP1884
// jt[EXTCODEHASH].constantGas = params.ExtcodeHashGasEIP1884
Comment thread
nategraf marked this conversation as resolved.
// jt[SLOAD].constantGas = params.SloadGasEIP1884
Comment thread
nategraf marked this conversation as resolved.

// New opcode
jt[SELFBALANCE] = operation{
Expand Down