diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-01 23:19:06 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-01 23:19:06 +0800 |
commit | cfe037028081ebb84ee35caa5b16fed5d125b58a (patch) | |
tree | 2e0a549f5c094fe182b05b88736830456ede717d /cmd/utils | |
parent | ad3a21f260a0b13048046f6c76fe5f47bdcc46de (diff) | |
download | dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.tar dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.tar.gz dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.tar.bz2 dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.tar.lz dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.tar.xz dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.tar.zst dexon-cfe037028081ebb84ee35caa5b16fed5d125b58a.zip |
Remove Websockets RPC transport
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/cmd.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index a36c10e3b..20165fa97 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -35,7 +35,6 @@ import ( "github.com/ethereum/go-ethereum/miner" "github.com/ethereum/go-ethereum/rlp" rpchttp "github.com/ethereum/go-ethereum/rpc/http" - rpcws "github.com/ethereum/go-ethereum/rpc/ws" "github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/xeth" ) @@ -170,18 +169,6 @@ func StartRpc(ethereum *eth.Ethereum, RpcPort int) { } } -func StartWebSockets(eth *eth.Ethereum, wsPort int) { - clilogger.Infoln("Starting WebSockets") - - var err error - eth.WsServer, err = rpcws.NewWebSocketServer(xeth.New(eth), wsPort) - if err != nil { - clilogger.Errorf("Could not start RPC interface (port %v): %v", wsPort, err) - } else { - go eth.WsServer.Start() - } -} - var gminer *miner.Miner func GetMiner() *miner.Miner { |