| 71 | REGISTER_NOTIFICATION(connect); |
| 72 | |
| 73 | void notify_connect(struct lightningd *ld, |
| 74 | const struct node_id *nodeid, |
| 75 | bool incoming, |
| 76 | const struct wireaddr_internal *addr) |
| 77 | { |
| 78 | struct jsonrpc_notification *n = notify_start(ld, "connect"); |
| 79 | if (!n) |
| 80 | return; |
| 81 | connect_notification_serialize(n->stream, nodeid, incoming, addr); |
| 82 | notify_send(ld, n); |
| 83 | } |
| 84 | |
| 85 | static void disconnect_notification_serialize(struct json_stream *stream, |
| 86 | const struct node_id *nodeid) |
no test coverage detected