geth,cmd/status: disable IPC and WS servers by default

This commit is contained in:
Victor Farazdagi 2017-01-26 18:48:48 +03:00
parent e38864fec2
commit caab90e62d
3 changed files with 5 additions and 4 deletions

View File

@ -202,9 +202,9 @@ func StartNode(datadir *C.char) *C.char {
// This starts a geth node with the given datadir
err := geth.CreateAndRunNode(&geth.NodeConfig{
DataDir: C.GoString(datadir),
IPCEnabled: true,
IPCEnabled: false,
HTTPPort: geth.HTTPPort,
WSEnabled: true,
WSEnabled: false,
WSPort: geth.WSPort,
TLSEnabled: false,
})

View File

@ -6,6 +6,7 @@ import (
"io"
"math/big"
"os"
"path"
"path/filepath"
"reflect"
"runtime"

View File

@ -131,9 +131,9 @@ func PrepareTestNode() (err error) {
// start geth node and wait for it to initialize
err = CreateAndRunNode(&NodeConfig{
DataDir: dataDir,
IPCEnabled: true,
IPCEnabled: false,
HTTPPort: TestNodeHTTPPort, // to avoid conflicts with running app, using different port in tests
WSEnabled: true,
WSEnabled: false,
WSPort: TestNodeWSPort, // ditto
TLSEnabled: false,
})