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

Function notify_sendpay_failure

lightningd/notification.c:454–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452REGISTER_NOTIFICATION(sendpay_failure);
453
454void notify_sendpay_failure(struct lightningd *ld,
455 const struct wallet_payment *payment,
456 enum jsonrpc_errcode pay_errcode,
457 const struct onionreply *onionreply,
458 const struct routing_failure *fail,
459 const char *errmsg)
460{
461 struct jsonrpc_notification *n = notify_start(ld, "sendpay_failure");
462 if (!n)
463 return;
464 sendpay_failure_notification_serialize(n->stream, payment, pay_errcode, onionreply, fail, errmsg);
465 notify_send(ld, n);
466}
467
468static void json_add_standard_notify_mvt_fields(struct json_stream *stream,
469 struct lightningd *ld,

Callers 1

tell_waiters_failedFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected