| 180 | REGISTER_NOTIFICATION(onionmessage_forward_fail); |
| 181 | |
| 182 | void notify_onionmessage_forward_fail(struct lightningd *ld, |
| 183 | const struct node_id *source, |
| 184 | const u8 *incoming, |
| 185 | const struct pubkey *path_key, |
| 186 | const u8 *outgoing, |
| 187 | const struct sciddir_or_pubkey *next_node) |
| 188 | { |
| 189 | struct jsonrpc_notification *n = notify_start(ld, "onionmessage_forward_fail"); |
| 190 | if (!n) |
| 191 | return; |
| 192 | onionmessage_forward_fail_serialize(n->stream, |
| 193 | source, |
| 194 | incoming, |
| 195 | path_key, |
| 196 | outgoing, |
| 197 | next_node); |
| 198 | notify_send(ld, n); |
| 199 | } |
| 200 | |
| 201 | static void invoice_payment_notification_serialize(struct json_stream *stream, |
| 202 | struct amount_msat amount, |
no test coverage detected