| 147 | REGISTER_NOTIFICATION(custommsg); |
| 148 | |
| 149 | void notify_custommsg(struct lightningd *ld, |
| 150 | const struct node_id *peer_id, |
| 151 | const u8 *msg) |
| 152 | { |
| 153 | struct jsonrpc_notification *n = notify_start(ld, "custommsg"); |
| 154 | if (!n) |
| 155 | return; |
| 156 | custommsg_notification_serialize(n->stream, peer_id, msg); |
| 157 | notify_send(ld, n); |
| 158 | } |
| 159 | |
| 160 | static void onionmessage_forward_fail_serialize(struct json_stream *stream, |
| 161 | const struct node_id *source, |
no test coverage detected