MCPcopy Create free account
hub / github.com/DNAProject/DNA / initNodeInfo

Function initNodeInfo

main.go:412–419  ·  view source on GitHub ↗
(ctx *cli.Context, p2pSvr *p2pserver.P2PServer)

Source from the content-addressed store, hash-verified

410}
411
412func 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
421func logCurrBlockHeight() {
422 ticker := time.NewTicker(config.DEFAULT_GEN_BLOCK_TIME * time.Second)

Callers 1

startDNAFunction · 0.85

Calls 3

StartServerFunction · 0.92
GetNetWorkMethod · 0.80
InfofMethod · 0.80

Tested by

no test coverage detected