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

Function payment_json_add_attempts

plugins/libplugin-pay.c:2110–2117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2108}
2109
2110static void payment_json_add_attempts(struct json_stream *s,
2111 const char *fieldname, struct payment *p)
2112{
2113 assert(p == payment_root(p));
2114 json_array_start(s, fieldname);
2115 payment_add_attempt(s, NULL, p, true);
2116 json_array_end(s);
2117}
2118
2119static void payment_failure_notify_core(struct payment *p,
2120 struct json_stream *n,

Callers 1

payment_finishedFunction · 0.70

Calls 4

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

Tested by

no test coverage detected