rpc flags added to the start up context

This commit is contained in:
Daniel Whitenack 2016-06-30 08:50:28 -05:00
parent 653e5fe406
commit 59299d1b0e
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ func MakeNode(datadir string) *node.Node {
set := flag.NewFlagSet("test", 0)
set.Bool("shh", true, "whisper")
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("logdir", datadir, "log dir for glog")
c = cli.NewContext(nil, set, nil)