stopIPC terminates the IPC RPC endpoint.
()
| 313 | |
| 314 | // stopIPC terminates the IPC RPC endpoint. |
| 315 | func (n *Node) stopIPC() { |
| 316 | if n.ipcListener != nil { |
| 317 | n.ipcListener.Close() |
| 318 | n.ipcListener = nil |
| 319 | |
| 320 | n.log.Info("IPC endpoint closed", "endpoint", n.ipcEndpoint) |
| 321 | } |
| 322 | if n.ipcHandler != nil { |
| 323 | n.ipcHandler.Stop() |
| 324 | n.ipcHandler = nil |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | // startHTTP initializes and starts the HTTP RPC endpoint. |
| 329 | func (n *Node) startHTTP(endpoint string, apis []rpc.API, modules []string, cors []string, vhosts []string) error { |