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

Function payment_json_add_attempts

plugins/pay.c:685–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685static void payment_json_add_attempts(struct json_stream *s,
686 const char *fieldname, struct payment *p)
687{
688 assert(p == payment_root(p));
689 json_array_start(s, fieldname);
690 payment_add_attempt(s, NULL, p, true);
691 json_array_end(s);
692}
693
694static void on_payment_failure(struct payment *payment)
695{

Callers 1

on_payment_failureFunction · 0.70

Calls 4

payment_rootFunction · 0.85
payment_add_attemptFunction · 0.70
json_array_startFunction · 0.50
json_array_endFunction · 0.50

Tested by

no test coverage detected