aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-10 06:00:27 +0800
committerFelix Lange <fjl@twurst.com>2015-03-10 06:08:46 +0800
commita11f1d6a7ec2eaa1a348776072c49019368a5ef3 (patch)
treecd2d7e9c3ade2ea02462436a908ca1caf9c06de3 /cmd/ethereum
parent73d1ebe244644c2d74a1c0c38a3b339e72140886 (diff)
downloadgo-tangerine-a11f1d6a7ec2eaa1a348776072c49019368a5ef3.tar.gz
go-tangerine-a11f1d6a7ec2eaa1a348776072c49019368a5ef3.tar.zst
go-tangerine-a11f1d6a7ec2eaa1a348776072c49019368a5ef3.zip
rpc: add dataDir parameter and JSON-RPC handler
Diffstat (limited to 'cmd/ethereum')
-rw-r--r--cmd/ethereum/main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index f5215c587..4855a3e4a 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -170,9 +170,7 @@ func runjs(ctx *cli.Context) {
func startEth(ctx *cli.Context, eth *eth.Ethereum) {
utils.StartEthereum(eth)
if ctx.GlobalBool(utils.RPCEnabledFlag.Name) {
- addr := ctx.GlobalString(utils.RPCListenAddrFlag.Name)
- port := ctx.GlobalInt(utils.RPCPortFlag.Name)
- utils.StartRpc(eth, addr, port)
+ utils.StartRPC(eth, ctx)
}
if ctx.GlobalBool(utils.MiningEnabledFlag.Name) {
eth.Miner().Start()