mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
wallet: Add descriptions to invoice and payment structs
This commit is contained in:
committed by
Rusty Russell
parent
7119a02932
commit
ff5ca37f3c
@@ -108,6 +108,9 @@ struct wallet_payment {
|
|||||||
struct secret *path_secrets;
|
struct secret *path_secrets;
|
||||||
struct pubkey *route_nodes;
|
struct pubkey *route_nodes;
|
||||||
struct short_channel_id *route_channels;
|
struct short_channel_id *route_channels;
|
||||||
|
|
||||||
|
/* The description of the payment. Must support `tal_len` */
|
||||||
|
const char *description;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct outpoint {
|
struct outpoint {
|
||||||
@@ -442,6 +445,9 @@ struct invoice_details {
|
|||||||
u64 paid_timestamp;
|
u64 paid_timestamp;
|
||||||
/* BOLT11 encoding for this invoice */
|
/* BOLT11 encoding for this invoice */
|
||||||
const char *bolt11;
|
const char *bolt11;
|
||||||
|
|
||||||
|
/* The description of the payment. */
|
||||||
|
char *description;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* An object that handles iteration over the set of invoices */
|
/* An object that handles iteration over the set of invoices */
|
||||||
|
|||||||
Reference in New Issue
Block a user