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

Function wallet_invoice_request_disable

wallet/wallet.c:6351–6363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6349}
6350
6351enum offer_status wallet_invoice_request_disable(struct wallet *w,
6352 const struct sha256 *invreq_id,
6353 enum offer_status s)
6354{
6355 enum offer_status newstatus;
6356
6357 assert(offer_status_active(s));
6358
6359 newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F);
6360 invoice_request_status_update(w->db, invreq_id, s, newstatus);
6361
6362 return newstatus;
6363}
6364
6365void wallet_invoice_request_mark_used(struct db *db, const struct sha256 *invreq_id)
6366{

Callers 1

Calls 3

offer_status_activeFunction · 0.85
offer_status_in_dbFunction · 0.85

Tested by

no test coverage detected