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

Function invoice_index_created

wallet/invoices.c:797–807  ·  view source on GitHub ↗

Fortuntely, dbids start at 1, not 0! */

Source from the content-addressed store, hash-verified

795
796/* Fortuntely, dbids start at 1, not 0! */
797u64 invoice_index_created(struct lightningd *ld,
798 enum invoice_status state,
799 const struct json_escape *label,
800 const char *invstring)
801{
802 assert(label);
803 assert(invstring);
804
805 return invoice_index_inc(ld, &state, label, invstring, NULL,
806 WAIT_INDEX_CREATED);
807}
808
809/* FIXME: We allow missing label here! :( */
810u64 invoice_index_update_status(struct lightningd *ld,

Callers 1

invoices_createFunction · 0.85

Calls 1

invoice_index_incFunction · 0.85

Tested by

no test coverage detected