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

Function wallet_invoice_request_disable

wallet/wallet.c:6291–6303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6289}
6290
6291enum offer_status wallet_invoice_request_disable(struct wallet *w,
6292 const struct sha256 *invreq_id,
6293 enum offer_status s)
6294{
6295 enum offer_status newstatus;
6296
6297 assert(offer_status_active(s));
6298
6299 newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F);
6300 invoice_request_status_update(w->db, invreq_id, s, newstatus);
6301
6302 return newstatus;
6303}
6304
6305void wallet_invoice_request_mark_used(struct db *db, const struct sha256 *invreq_id)
6306{

Callers 1

Calls 3

offer_status_activeFunction · 0.85
offer_status_in_dbFunction · 0.85

Tested by

no test coverage detected