aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/gethrpctest
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-16 17:53:50 +0800
committerFelix Lange <fjl@twurst.com>2016-09-16 21:24:31 +0800
commitb42a5b118f1aa7ac1235547c8594146978941401 (patch)
tree5a0a56308fe3137f1c9c69394281dadfc4551f37 /cmd/gethrpctest
parenteeb322ae649c4a1a32430cdddfffed70f509181e (diff)
downloaddexon-b42a5b118f1aa7ac1235547c8594146978941401.tar
dexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.gz
dexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.bz2
dexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.lz
dexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.xz
dexon-b42a5b118f1aa7ac1235547c8594146978941401.tar.zst
dexon-b42a5b118f1aa7ac1235547c8594146978941401.zip
common, node: move datadir defaults into package node
Diffstat (limited to 'cmd/gethrpctest')
-rw-r--r--cmd/gethrpctest/main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/gethrpctest/main.go b/cmd/gethrpctest/main.go
index 2c35ec943..d0d6e1618 100644
--- a/cmd/gethrpctest/main.go
+++ b/cmd/gethrpctest/main.go
@@ -23,7 +23,6 @@ import (
"os"
"os/signal"
- "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/eth"
@@ -89,11 +88,11 @@ func MakeSystemNode(privkey string, test *tests.BlockTest) (*node.Node, error) {
stack, err := node.New(&node.Config{
UseLightweightKDF: true,
IPCPath: node.DefaultIPCEndpoint(""),
- HTTPHost: common.DefaultHTTPHost,
- HTTPPort: common.DefaultHTTPPort,
+ HTTPHost: node.DefaultHTTPHost,
+ HTTPPort: node.DefaultHTTPPort,
HTTPModules: []string{"admin", "db", "eth", "debug", "miner", "net", "shh", "txpool", "personal", "web3"},
- WSHost: common.DefaultWSHost,
- WSPort: common.DefaultWSPort,
+ WSHost: node.DefaultWSHost,
+ WSPort: node.DefaultWSPort,
WSModules: []string{"admin", "db", "eth", "debug", "miner", "net", "shh", "txpool", "personal", "web3"},
NoDiscovery: true,
})