aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-03-27 18:48:03 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-03-27 18:48:03 +0800
commit54a14d5c9d7d1e5039753eac991cd057a5514fe8 (patch)
tree322f74746ac7a2ddfea0e5fbb42383f46d5aad15 /cmd/utils
parent09280c5f11993ee64ce231433270345c7e253ee3 (diff)
parente29396b6915a27d3e44be45fe9e540c6ef39f1dd (diff)
downloadgo-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.gz
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.bz2
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.lz
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.xz
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.zst
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.zip
Merge pull request #584 from tgerring/issue577
Use ExtraDB for RPC storage. Fixes #577
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index f948cdb06..ea11cb158 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -251,11 +251,10 @@ func GetAccountManager(ctx *cli.Context) *accounts.Manager {
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)
}
- go http.Serve(l, rpc.JSONRPC(xeth.New(eth, nil), dataDir))
+ go http.Serve(l, rpc.JSONRPC(xeth.New(eth, nil)))
}