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

Function outgoing_notify_success

plugins/xpay/xpay.c:653–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653static void outgoing_notify_success(const struct attempt *attempt)
654{
655 struct json_stream *js = plugin_notification_start(NULL, "pay_part_end");
656 json_add_string(js, "status", "success");
657 json_add_timerel(js, "duration", timemono_between(time_mono(), attempt->start_time));
658 json_add_attempt_fields(js, attempt);
659 plugin_notification_end(attempt->payment->plugin, js);
660}
661
662static void outgoing_notify_failure(const struct attempt *attempt,
663 int failindex, int errcode,

Callers 1

Calls 7

json_add_timerelFunction · 0.85
timemono_betweenFunction · 0.85
time_monoFunction · 0.85
json_add_attempt_fieldsFunction · 0.85
plugin_notification_endFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected