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

Function invoice_request_status_update

wallet/wallet.c:6276–6289  ·  view source on GitHub ↗

If we make an invoice_request inactive */

Source from the content-addressed store, hash-verified

6274
6275/* If we make an invoice_request inactive */
6276static void invoice_request_status_update(struct db *db,
6277 const struct sha256 *invreq_id,
6278 enum offer_status oldstatus,
6279 enum offer_status newstatus)
6280{
6281 struct db_stmt *stmt;
6282
6283 stmt = db_prepare_v2(db, SQL("UPDATE invoicerequests"
6284 " SET status=?"
6285 " WHERE invreq_id = ?;"));
6286 db_bind_int(stmt, offer_status_in_db(newstatus));
6287 db_bind_sha256(stmt, invreq_id);
6288 db_exec_prepared_v2(take(stmt));
6289}
6290
6291enum offer_status wallet_invoice_request_disable(struct wallet *w,
6292 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