MCPcopy Create free account
hub / github.com/ElementsProject/lightning / notify_sendpay_success

Function notify_sendpay_success

lightningd/notification.c:420–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418REGISTER_NOTIFICATION(sendpay_success);
419
420void notify_sendpay_success(struct lightningd *ld,
421 const struct wallet_payment *payment)
422{
423 struct jsonrpc_notification *n = notify_start(ld, "sendpay_success");
424 if (!n)
425 return;
426 json_add_payment_fields(n->stream, payment);
427 notify_send(ld, n);
428}
429
430static void sendpay_failure_notification_serialize(struct json_stream *stream,
431 const struct wallet_payment *payment,

Callers 1

tell_waiters_successFunction · 0.70

Calls 3

notify_startFunction · 0.85
json_add_payment_fieldsFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected