| 2136 | |
| 2137 | |
| 2138 | static u64 sendpay_index_inc(struct lightningd *ld, |
| 2139 | const struct sha256 *payment_hash, |
| 2140 | u64 partid, |
| 2141 | u64 groupid, |
| 2142 | enum payment_status status, |
| 2143 | enum wait_index idx) |
| 2144 | { |
| 2145 | return wait_index_increment(ld, ld->wallet->db, |
| 2146 | WAIT_SUBSYSTEM_SENDPAY, idx, |
| 2147 | "status", payment_status_to_string(status), |
| 2148 | "=partid", tal_fmt(tmpctx, "%"PRIu64, partid), |
| 2149 | "=groupid", tal_fmt(tmpctx, "%"PRIu64, groupid), |
| 2150 | "payment_hash", |
| 2151 | fmt_sha256(tmpctx, payment_hash), |
| 2152 | NULL); |
| 2153 | } |
| 2154 | |
| 2155 | void sendpay_index_deleted(struct lightningd *ld, |
| 2156 | const struct sha256 *payment_hash, |
no test coverage detected