In blocktest cmd, disable network and add RPC flag

This commit is contained in:
Gustav Simonsson
2015-03-20 01:59:38 +01:00
parent 3f6e1b2fd3
commit 33c5186fd0
2 changed files with 12 additions and 5 deletions

View File

@ -256,7 +256,7 @@ func StartRPC(eth *eth.Ethereum, ctx *cli.Context) {
addr := ctx.GlobalString(RPCListenAddrFlag.Name)
port := ctx.GlobalInt(RPCPortFlag.Name)
dataDir := ctx.GlobalString(DataDirFlag.Name)
fmt.Println("Starting RPC on port: ", port)
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", addr, port))
if err != nil {
Fatalf("Can't listen on %s:%d: %v", addr, port, err)