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

Function payment_json_add_attempts

plugins/libplugin-pay.c:1861–1868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1859}
1860
1861static void payment_json_add_attempts(struct json_stream *s,
1862 const char *fieldname, struct payment *p)
1863{
1864 assert(p == payment_root(p));
1865 json_array_start(s, fieldname);
1866 payment_add_attempt(s, NULL, p, true);
1867 json_array_end(s);
1868}
1869
1870static void payment_notify_failure(struct payment *p, const char *error_message)
1871{

Callers 1

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