aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-04-12 21:44:42 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-04-12 21:44:42 +0800
commit90279812804cdca04a12955b83f91fbebb661082 (patch)
tree5040a232d8dee28bc784049fe5da0348f7626202
parent8627680e24a29abd5f2aaaeaa2c1c852d8fb693b (diff)
downloaddexon-90279812804cdca04a12955b83f91fbebb661082.tar
dexon-90279812804cdca04a12955b83f91fbebb661082.tar.gz
dexon-90279812804cdca04a12955b83f91fbebb661082.tar.bz2
dexon-90279812804cdca04a12955b83f91fbebb661082.tar.lz
dexon-90279812804cdca04a12955b83f91fbebb661082.tar.xz
dexon-90279812804cdca04a12955b83f91fbebb661082.tar.zst
dexon-90279812804cdca04a12955b83f91fbebb661082.zip
cmd/gethrpctest: add missing chain configuration config field
-rw-r--r--cmd/gethrpctest/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/gethrpctest/main.go b/cmd/gethrpctest/main.go
index 38016fb35..4843f8658 100644
--- a/cmd/gethrpctest/main.go
+++ b/cmd/gethrpctest/main.go
@@ -26,11 +26,13 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/node"
+ "github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/tests"
"github.com/ethereum/go-ethereum/whisper"
)
@@ -129,6 +131,7 @@ func MakeSystemNode(keydir string, privkey string, test *tests.BlockTest) (*node
ethConf := &eth.Config{
TestGenesisState: db,
TestGenesisBlock: test.Genesis,
+ ChainConfig: &core.ChainConfig{HomesteadBlock: params.MainNetHomesteadBlock},
AccountManager: accman,
}
if err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) { return eth.New(ctx, ethConf) }); err != nil {