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

Function json_add_invoice

lightningd/invoice.c:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static void json_add_invoice(struct json_stream *response,
80 const char *fieldname,
81 const struct invoice_details *inv)
82{
83 json_object_start(response, fieldname);
84 json_add_invoice_fields(response, inv);
85 json_object_end(response);
86}
87
88static struct command_result *tell_waiter(struct command *cmd,
89 const struct invoice *inv)

Callers 1

json_add_invoicesFunction · 0.85

Calls 3

json_add_invoice_fieldsFunction · 0.85
json_object_startFunction · 0.50
json_object_endFunction · 0.50

Tested by

no test coverage detected