From ff5ca37f3cf4de24c11008ab7b9bc11dbf1af6cd Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 20 Jul 2018 15:10:01 +0200 Subject: [PATCH] wallet: Add descriptions to invoice and payment structs --- wallet/wallet.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wallet/wallet.h b/wallet/wallet.h index 1cdb6612c..694ca7786 100644 --- a/wallet/wallet.h +++ b/wallet/wallet.h @@ -108,6 +108,9 @@ struct wallet_payment { struct secret *path_secrets; struct pubkey *route_nodes; struct short_channel_id *route_channels; + + /* The description of the payment. Must support `tal_len` */ + const char *description; }; struct outpoint { @@ -442,6 +445,9 @@ struct invoice_details { u64 paid_timestamp; /* BOLT11 encoding for this invoice */ const char *bolt11; + + /* The description of the payment. */ + char *description; }; /* An object that handles iteration over the set of invoices */