MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / createDirectServer

Function createDirectServer

cmd/cql-minerd/node.go:93–100  ·  view source on GitHub ↗
(privateKeyPath string, masterKey []byte, listenAddr string)

Source from the content-addressed store, hash-verified

91}
92
93func createDirectServer(privateKeyPath string, masterKey []byte, listenAddr string) (server *rpc.Server, err error) {
94 if listenAddr == "" {
95 return nil, nil
96 }
97 server = rpc.NewServer()
98 err = server.InitRPCServer(listenAddr, privateKeyPath, masterKey)
99 return
100}
101
102func initMetrics() {
103 if conf.GConf != nil {

Callers 1

initNodeFunction · 0.85

Calls 2

NewServerFunction · 0.92
InitRPCServerMethod · 0.80

Tested by

no test coverage detected