Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel istanbul gas changes #939

Merged
merged 3 commits into from
Mar 28, 2020
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
nategraf marked this conversation as resolved.
Show resolved Hide resolved
// jt[SLOAD].constantGas = params.SloadGasEIP1884
nategraf marked this conversation as resolved.
Show resolved Hide resolved

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