(privateKeyPath, pubKeyStorePath string, masterKey []byte, listenAddr string)
| 180 | } |
| 181 | |
| 182 | func 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 | |
| 192 | func initDHTGossip() (err error) { |
| 193 | log.Info("init gossip service") |
no test coverage detected