mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
db: add invoicerequests table.
We no longer use offers for "I want to send you money", but we'll use invoice_requests directly. Create a new table for them, and associated functions. The "localofferid" for "pay" and "sendpay" is now "localinvreqid". This is an experimental-only option, so document the change under experimental only. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: JSON-RPC: `pay` and `sendpay` `localofferid` is now `localinvreqid`.
This commit is contained in:
committed by
Christian Decker
parent
891cef7b2b
commit
02d7454226
@@ -277,9 +277,9 @@ struct payment {
|
||||
/* Description, usually set if bolt11 has only description_hash */
|
||||
const char *description;
|
||||
|
||||
/* If this is paying a local offer, this is the one (sendpay ensures we
|
||||
* don't pay twice for single-use offers) */
|
||||
struct sha256 *local_offer_id;
|
||||
/* If this is paying a local invoice_request, this is the one (sendpay
|
||||
* ensures we don't pay twice for single-use invoice requests) */
|
||||
struct sha256 *local_invreq_id;
|
||||
|
||||
/* Textual explanation of why this payment was attempted. */
|
||||
const char *why;
|
||||
|
||||
Reference in New Issue
Block a user