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

Function createServer

cmd/cqld/bootstrap.go:182–190  ·  view source on GitHub ↗
(privateKeyPath, pubKeyStorePath string, masterKey []byte, listenAddr string)

Source from the content-addressed store, hash-verified

180}
181
182func createServer(privateKeyPath, pubKeyStorePath string, masterKey []byte, listenAddr string) (server *rpc.Server, err error) {
183 server = rpc.NewServer()
184
185 if err = server.InitRPCServer(listenAddr, privateKeyPath, masterKey); err != nil {
186 err = errors.Wrap(err, "init rpc server failed")
187 }
188
189 return
190}
191
192func initDHTGossip() (err error) {
193 log.Info("init gossip service")

Callers 1

runNodeFunction · 0.70

Calls 1

InitRPCServerMethod · 0.80

Tested by

no test coverage detected