geth,cmd/status: disable IPC and WS servers by default
This commit is contained in:
parent
e38864fec2
commit
caab90e62d
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -6,6 +6,7 @@ import (
|
|||
"io"
|
||||
"math/big"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"runtime"
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue