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

Function invoice_status_str

lightningd/invoice.c:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include <wire/wire_sync.h>
28
29static const char *invoice_status_str(const struct invoice_details *inv)
30{
31 if (inv->state == PAID)
32 return "paid";
33 if (inv->state == EXPIRED)
34 return "expired";
35 return "unpaid";
36}
37
38static void json_add_invoice_fields(struct json_stream *response,
39 const struct invoice_details *inv)

Callers 2

json_add_invoice_fieldsFunction · 0.85
json_delinvoiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected