| 90 | REGISTER_NOTIFICATION(disconnect); |
| 91 | |
| 92 | void notify_disconnect(struct lightningd *ld, const struct node_id *nodeid) |
| 93 | { |
| 94 | struct jsonrpc_notification *n = notify_start(ld, "disconnect"); |
| 95 | if (!n) |
| 96 | return; |
| 97 | disconnect_notification_serialize(n->stream, nodeid); |
| 98 | notify_send(ld, n); |
| 99 | } |
| 100 | |
| 101 | /*'warning' is based on LOG_UNUSUAL/LOG_BROKEN level log |
| 102 | *(in plugin module, they're 'warn'/'error' level). */ |
no test coverage detected