(ctx *cli.Context)
| 401 | } |
| 402 | |
| 403 | func initWs(ctx *cli.Context) { |
| 404 | if !config.DefConfig.Ws.EnableHttpWs { |
| 405 | return |
| 406 | } |
| 407 | websocket.StartServer() |
| 408 | |
| 409 | log.Infof("Ws init success") |
| 410 | } |
| 411 | |
| 412 | func initNodeInfo(ctx *cli.Context, p2pSvr *p2pserver.P2PServer) { |
| 413 | if config.DefConfig.P2PNode.HttpInfoPort == 0 { |
no test coverage detected