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

Function StartServer

http/nodeinfo/server.go:118–123  ·  view source on GitHub ↗
(n p2p.P2P)

Source from the content-addressed store, hash-verified

116}
117
118func StartServer(n p2p.P2P) {
119 node = n
120 port := int(config.DefConfig.P2PNode.HttpInfoPort)
121 http.HandleFunc("/info", viewHandler)
122 http.ListenAndServe(":"+strconv.Itoa(port), nil)
123}

Callers 1

initNodeInfoFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected