(ctx *cli.Context, p2pSvr *p2pserver.P2PServer)
| 410 | } |
| 411 | |
| 412 | func initNodeInfo(ctx *cli.Context, p2pSvr *p2pserver.P2PServer) { |
| 413 | if config.DefConfig.P2PNode.HttpInfoPort == 0 { |
| 414 | return |
| 415 | } |
| 416 | go nodeinfo.StartServer(p2pSvr.GetNetWork()) |
| 417 | |
| 418 | log.Infof("Nodeinfo init success") |
| 419 | } |
| 420 | |
| 421 | func logCurrBlockHeight() { |
| 422 | ticker := time.NewTicker(config.DEFAULT_GEN_BLOCK_TIME * time.Second) |
no test coverage detected