aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/evm/main.go5
-rw-r--r--cmd/geth/main.go10
2 files changed, 9 insertions, 6 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index aa48f6ede..04f51cecc 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -30,6 +30,7 @@ import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
+ "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/logger/glog"
"gopkg.in/urfave/cli.v1"
@@ -141,7 +142,9 @@ func run(ctx *cli.Context) error {
)
} else {
receiver := statedb.CreateAccount(common.StringToAddress("receiver"))
- receiver.SetCode(common.Hex2Bytes(ctx.GlobalString(CodeFlag.Name)))
+
+ code := common.Hex2Bytes(ctx.GlobalString(CodeFlag.Name))
+ receiver.SetCode(crypto.Keccak256Hash(code), code)
ret, err = vmenv.Call(
sender,
receiver.Address(),
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 71a185eb5..b7fc89d7d 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -47,11 +47,11 @@ import (
)
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 = 14 // Patch version component of the current release
- versionMeta = "prerelease" // Version metadata to append to the version string
+ 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 = 15 // 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
)