aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 02:28:58 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-28 02:29:08 +0800
commit5f50fe7a4a6218bedf78333d751b57166932464a (patch)
tree57c57b0731666f883069cd15fe155c1e2ea4f558 /cmd/ethereum
parentb8e7b8e2e1b88e40090c9b741b4cd7000689ae9e (diff)
downloaddexon-5f50fe7a4a6218bedf78333d751b57166932464a.tar
dexon-5f50fe7a4a6218bedf78333d751b57166932464a.tar.gz
dexon-5f50fe7a4a6218bedf78333d751b57166932464a.tar.bz2
dexon-5f50fe7a4a6218bedf78333d751b57166932464a.tar.lz
dexon-5f50fe7a4a6218bedf78333d751b57166932464a.tar.xz
dexon-5f50fe7a4a6218bedf78333d751b57166932464a.tar.zst
dexon-5f50fe7a4a6218bedf78333d751b57166932464a.zip
Update CLI to use new Websocket RPC
Use “wsport” flag to change default port
Diffstat (limited to 'cmd/ethereum')
-rw-r--r--cmd/ethereum/flags.go2
-rw-r--r--cmd/ethereum/main.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go
index f829744dc..e0fbbb008 100644
--- a/cmd/ethereum/flags.go
+++ b/cmd/ethereum/flags.go
@@ -41,6 +41,7 @@ var (
StartRpc bool
StartWebSockets bool
RpcPort int
+ WsPort int
NatType string
PMPGateway string
OutboundPort string
@@ -96,6 +97,7 @@ func Init() {
flag.StringVar(&PMPGateway, "pmp", "", "Gateway IP for PMP")
flag.IntVar(&MaxPeer, "maxpeer", 30, "maximum desired peers")
flag.IntVar(&RpcPort, "rpcport", 8080, "port to start json-rpc server on")
+ flag.IntVar(&WsPort, "wsport", 40404, "port to start websocket rpc server on")
flag.BoolVar(&StartRpc, "rpc", false, "start rpc server")
flag.BoolVar(&StartWebSockets, "ws", false, "start websocket server")
flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)")
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index b816c678e..92dbf5a6f 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -131,7 +131,7 @@ func main() {
}
if StartWebSockets {
- utils.StartWebSockets(ethereum)
+ utils.StartWebSockets(ethereum, WsPort)
}
utils.StartEthereum(ethereum, UseSeed)