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

Function payment_json_add_attempts

plugins/pay.c:334–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static void payment_json_add_attempts(struct json_stream *s,
335 const char *fieldname, struct payment *p)
336{
337 assert(p == payment_root(p));
338 json_array_start(s, fieldname);
339 payment_add_attempt(s, NULL, p, true);
340 json_array_end(s);
341}
342
343static void on_payment_failure(struct payment *payment)
344{

Callers 1

on_payment_failureFunction · 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