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

Function sendpay_index_inc

lightningd/pay.c:2138–2153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2136
2137
2138static 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
2155void sendpay_index_deleted(struct lightningd *ld,
2156 const struct sha256 *payment_hash,

Callers 3

sendpay_index_deletedFunction · 0.85
sendpay_index_createdFunction · 0.85

Calls 3

payment_status_to_stringFunction · 0.85
fmt_sha256Function · 0.85
wait_index_incrementFunction · 0.70

Tested by

no test coverage detected