rpc flags added to the start up context
This commit is contained in:
parent
653e5fe406
commit
59299d1b0e
|
@ -47,6 +47,8 @@ func MakeNode(datadir string) *node.Node {
|
||||||
set := flag.NewFlagSet("test", 0)
|
set := flag.NewFlagSet("test", 0)
|
||||||
set.Bool("shh", true, "whisper")
|
set.Bool("shh", true, "whisper")
|
||||||
set.Bool("noeth", true, "disable eth")
|
set.Bool("noeth", true, "disable eth")
|
||||||
|
set.Bool("rpc", true, "enable rpc")
|
||||||
|
set.String("rpcapi", "db,eth,net,web3,shh,admin", "rpc api(s)")
|
||||||
set.String("datadir", datadir, "data directory for geth")
|
set.String("datadir", datadir, "data directory for geth")
|
||||||
set.String("logdir", datadir, "log dir for glog")
|
set.String("logdir", datadir, "log dir for glog")
|
||||||
c = cli.NewContext(nil, set, nil)
|
c = cli.NewContext(nil, set, nil)
|
||||||
|
|
Loading…
Reference in New Issue