| 4683 | } |
| 4684 | |
| 4685 | struct db_stmt *payments_by_invoice_request(struct wallet *wallet, |
| 4686 | const struct sha256 *local_invreq_id) |
| 4687 | { |
| 4688 | struct db_stmt *stmt; |
| 4689 | stmt = db_prepare_v2(wallet->db, SQL("SELECT" |
| 4690 | " id" |
| 4691 | ", updated_index" |
| 4692 | ", status" |
| 4693 | ", destination" |
| 4694 | ", msatoshi" |
| 4695 | ", payment_hash" |
| 4696 | ", timestamp" |
| 4697 | ", payment_preimage" |
| 4698 | ", path_secrets" |
| 4699 | ", route_nodes" |
| 4700 | ", route_channels" |
| 4701 | ", msatoshi_sent" |
| 4702 | ", description" |
| 4703 | ", bolt11" |
| 4704 | ", paydescription" |
| 4705 | ", failonionreply" |
| 4706 | ", total_msat" |
| 4707 | ", partid" |
| 4708 | ", local_invreq_id" |
| 4709 | ", groupid" |
| 4710 | ", completed_at" |
| 4711 | " FROM payments" |
| 4712 | " WHERE local_invreq_id = ?;")); |
| 4713 | db_bind_sha256(stmt, local_invreq_id); |
| 4714 | db_query_prepared(stmt); |
| 4715 | |
| 4716 | return payments_next(wallet, stmt); |
| 4717 | } |
| 4718 | |
| 4719 | struct db_stmt *payments_next(struct wallet *w, |
| 4720 | struct db_stmt *stmt) |
no test coverage detected