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

Function invoice_request_status_update

wallet/wallet.c:6336–6349  ·  view source on GitHub ↗

If we make an invoice_request inactive */

Source from the content-addressed store, hash-verified

6334
6335/* If we make an invoice_request inactive */
6336static void invoice_request_status_update(struct db *db,
6337 const struct sha256 *invreq_id,
6338 enum offer_status oldstatus,
6339 enum offer_status newstatus)
6340{
6341 struct db_stmt *stmt;
6342
6343 stmt = db_prepare_v2(db, SQL("UPDATE invoicerequests"
6344 " SET status=?"
6345 " WHERE invreq_id = ?;"));
6346 db_bind_int(stmt, offer_status_in_db(newstatus));
6347 db_bind_sha256(stmt, invreq_id);
6348 db_exec_prepared_v2(take(stmt));
6349}
6350
6351enum offer_status wallet_invoice_request_disable(struct wallet *w,
6352 const struct sha256 *invreq_id,

Calls 4

db_bind_intFunction · 0.85
offer_status_in_dbFunction · 0.85
db_bind_sha256Function · 0.85
db_exec_prepared_v2Function · 0.85

Tested by

no test coverage detected