aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-10-15 17:38:21 +0800
committerGitHub <noreply@github.com>2016-10-15 17:38:21 +0800
commitef9265d0d7abf6614c1d2fb977989ab0d400a590 (patch)
tree703c2b72c0c86a8f6144acd6449a633fb2b1d3a2 /cmd
parent5a6008e004a6611d7a478495d083eaf26e52c5f1 (diff)
parentac0c5dd77f60d91b8cefef307dbda0e6b0e877be (diff)
downloadgo-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.tar
go-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.tar.gz
go-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.tar.bz2
go-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.tar.lz
go-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.tar.xz
go-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.tar.zst
go-tangerine-ef9265d0d7abf6614c1d2fb977989ab0d400a590.zip
Merge pull request #3140 from karalabe/release/1.4
Geth 1.4.18: Note 7
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ethtest/main.go2
-rw-r--r--cmd/evm/main.go4
-rw-r--r--cmd/geth/main.go2
-rw-r--r--cmd/utils/flags.go7
4 files changed, 13 insertions, 2 deletions
diff --git a/cmd/ethtest/main.go b/cmd/ethtest/main.go
index 71465fb55..5663c2623 100644
--- a/cmd/ethtest/main.go
+++ b/cmd/ethtest/main.go
@@ -74,7 +74,7 @@ func runTestWithReader(test string, r io.Reader) error {
var err error
switch strings.ToLower(test) {
case "bk", "block", "blocktest", "blockchaintest", "blocktests", "blockchaintests":
- err = tests.RunBlockTestWithReader(params.MainNetHomesteadBlock, params.MainNetDAOForkBlock, r, skipTests)
+ err = tests.RunBlockTestWithReader(params.MainNetHomesteadBlock, params.MainNetDAOForkBlock, params.MainNetHomesteadGasRepriceBlock, r, skipTests)
case "st", "state", "statetest", "statetests":
rs := tests.RuleSet{HomesteadBlock: params.MainNetHomesteadBlock, DAOForkBlock: params.MainNetDAOForkBlock, DAOForkSupport: true}
err = tests.RunStateTestWithReader(rs, r, skipTests)
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 3f7370b10..952b32cd1 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -33,6 +33,7 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/logger/glog"
+ "github.com/ethereum/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
@@ -222,6 +223,9 @@ func NewEnv(state *state.StateDB, transactor common.Address, value *big.Int, cfg
type ruleSet struct{}
func (ruleSet) IsHomestead(*big.Int) bool { return true }
+func (ruleSet) GasTable(*big.Int) params.GasTable {
+ return params.GasTableHomesteadGasRepriceFork
+}
func (self *VMEnv) RuleSet() vm.RuleSet { return ruleSet{} }
func (self *VMEnv) Vm() vm.Vm { return self.evm }
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 5cf860b12..c4389e434 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -50,7 +50,7 @@ const (
clientIdentifier = "Geth" // Client identifier to advertise over the network
versionMajor = 1 // Major version component of the current release
versionMinor = 4 // Minor version component of the current release
- versionPatch = 17 // Patch version component of the current release
+ versionPatch = 18 // Patch version component of the current release
versionMeta = "stable" // Version metadata to append to the version string
versionOracle = "0xfa7b9770ca4cb04296cac84f37736d4041251cdf" // Ethereum address of the Geth release oracle
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 9424a288d..58e3ebfcb 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -809,6 +809,13 @@ func MustMakeChainConfigFromDb(ctx *cli.Context, db ethdb.Database) *core.ChainC
}
config.DAOForkSupport = true
}
+ if config.HomesteadGasRepriceBlock == nil {
+ if ctx.GlobalBool(TestNetFlag.Name) {
+ config.HomesteadGasRepriceBlock = params.TestNetHomesteadGasRepriceBlock
+ } else {
+ config.HomesteadGasRepriceBlock = params.MainNetHomesteadGasRepriceBlock
+ }
+ }
// Force override any existing configs if explicitly requested
switch {
case ctx.GlobalBool(SupportDAOFork.Name):