aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
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 /eth/backend.go
parentb8e7b8e2e1b88e40090c9b741b4cd7000689ae9e (diff)
downloadgo-tangerine-5f50fe7a4a6218bedf78333d751b57166932464a.tar.gz
go-tangerine-5f50fe7a4a6218bedf78333d751b57166932464a.tar.zst
go-tangerine-5f50fe7a4a6218bedf78333d751b57166932464a.zip
Update CLI to use new Websocket RPC
Use “wsport” flag to change default port
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index fbe080618..ab30a1b38 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -67,6 +67,7 @@ type Ethereum struct {
blockSub event.Subscription
RpcServer rpc.RpcServer
+ WsServer rpc.RpcServer
keyManager *crypto.KeyManager
clientIdentity p2p.ClientIdentity
@@ -276,6 +277,9 @@ func (s *Ethereum) Stop() {
if s.RpcServer != nil {
s.RpcServer.Stop()
}
+ if s.WsServer != nil {
+ s.WsServer.Stop()
+ }
s.txPool.Stop()
s.eventMux.Stop()
s.blockPool.Stop()