| 398 | REGISTER_NOTIFICATION(forward_event); |
| 399 | |
| 400 | void notify_forward_event(struct lightningd *ld, |
| 401 | const struct htlc_in *in, |
| 402 | const struct short_channel_id *scid_out, |
| 403 | const struct amount_msat *amount_out, |
| 404 | enum forward_status state, |
| 405 | enum onion_wire failcode, |
| 406 | struct timeabs *resolved_time, |
| 407 | enum forward_style forward_style, |
| 408 | u64 created_index, |
| 409 | u64 updated_index) |
| 410 | { |
| 411 | struct jsonrpc_notification *n = notify_start(ld, "forward_event"); |
| 412 | if (!n) |
| 413 | return; |
| 414 | forward_event_notification_serialize(n->stream, in, scid_out, amount_out, state, failcode, resolved_time, forward_style, created_index, updated_index); |
| 415 | notify_send(ld, n); |
| 416 | } |
| 417 | |
| 418 | REGISTER_NOTIFICATION(sendpay_success); |
| 419 |
nothing calls this directly
no test coverage detected