mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
Added a registry to Barak.
This commit is contained in:
@@ -162,10 +162,11 @@ func (n *Node) StartRPC() {
|
||||
core.SetSwitch(n.sw)
|
||||
|
||||
listenAddr := config.App().GetString("RPC.HTTP.ListenAddr")
|
||||
listener := p2p.NewDefaultListener("tcp", listenAddr, false)
|
||||
mux := http.NewServeMux()
|
||||
rpc.RegisterEventsHandler(mux, n.evsw)
|
||||
rpc.RegisterRPCFuncs(mux, core.Routes)
|
||||
rpc.StartHTTPServer(listenAddr, mux)
|
||||
rpc.StartHTTPServer(listener, mux)
|
||||
}
|
||||
|
||||
func (n *Node) Switch() *p2p.Switch {
|
||||
|
||||
Reference in New Issue
Block a user