MCPcopy Create free account
hub / github.com/CPChain/chain / startIPC

Method startIPC

node/node.go:300–312  ·  view source on GitHub ↗

startIPC initializes and starts the IPC RPC endpoint.

(apis []rpc.API)

Source from the content-addressed store, hash-verified

298
299// startIPC initializes and starts the IPC RPC endpoint.
300func (n *Node) startIPC(apis []rpc.API) error {
301 if n.ipcEndpoint == "" {
302 return nil // IPC disabled.
303 }
304 listener, handler, err := rpc.StartIPCEndpoint(n.ipcEndpoint, apis)
305 if err != nil {
306 return err
307 }
308 n.ipcListener = listener
309 n.ipcHandler = handler
310 n.log.Info("IPC endpoint opened", "url", n.ipcEndpoint)
311 return nil
312}
313
314// stopIPC terminates the IPC RPC endpoint.
315func (n *Node) stopIPC() {

Callers 1

startRPCMethod · 0.95

Calls 1

InfoMethod · 0.65

Tested by

no test coverage detected