diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 00:56:36 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 00:56:36 +0800 |
commit | 40ff3cac3943ee672d818776fdd8235fc6684dca (patch) | |
tree | e32f82689b0c669d61688470af5e92c2eda44d34 /cmd/utils | |
parent | 53b5a45856c5d4c307dc55b4ae1b46efd9471142 (diff) | |
parent | 6e50a1e9f59532671eaa2bb2f2081a67f659bd0d (diff) | |
download | go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.tar go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.tar.gz go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.tar.bz2 go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.tar.lz go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.tar.xz go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.tar.zst go-tangerine-40ff3cac3943ee672d818776fdd8235fc6684dca.zip |
merge
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/cmd.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 03ad883d7..794753f11 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -159,9 +159,9 @@ func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, Secre clilogger.Infof("Main address %x\n", keyManager.Address()) } -func StartRpc(ethereum *eth.Ethereum, RpcPort int) { +func StartRpc(ethereum *eth.Ethereum, RpcListenAddress string, RpcPort int) { var err error - ethereum.RpcServer, err = rpchttp.NewRpcHttpServer(xeth.New(ethereum), RpcPort) + ethereum.RpcServer, err = rpchttp.NewRpcHttpServer(xeth.New(ethereum), RpcListenAddress, RpcPort) if err != nil { clilogger.Errorf("Could not start RPC interface (port %v): %v", RpcPort, err) } else { |