Fortuntely, dbids start at 1, not 0! */
| 795 | |
| 796 | /* Fortuntely, dbids start at 1, not 0! */ |
| 797 | u64 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! :( */ |
| 810 | u64 invoice_index_update_status(struct lightningd *ld, |
no test coverage detected