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

Function notify_sendpay_success

lightningd/notification.c:382–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 sendpay_success_notification_serialize);
381
382void notify_sendpay_success(struct lightningd *ld,
383 const struct wallet_payment *payment)
384{
385 void (*serialize)(struct json_stream *,
386 const struct wallet_payment *) = sendpay_success_notification_gen.serialize;
387
388 struct jsonrpc_notification *n =
389 jsonrpc_notification_start(NULL, "sendpay_success");
390 serialize(n->stream, payment);
391 jsonrpc_notification_end(n);
392 plugins_notify(ld->plugins, take(n));
393}
394
395static void sendpay_failure_notification_serialize(struct json_stream *stream,
396 const struct wallet_payment *payment,

Callers 1

tell_waiters_successFunction · 0.70

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected