pay, wallet: rename internal bolt11 vars to invstring.

And handle bolt12 strings if EXPERIMENTAL_FEATURES.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-12-14 11:54:37 +10:30
committed by Christian Decker
parent 4c4288e3e5
commit a33e39b7e8
11 changed files with 123 additions and 75 deletions

View File

@@ -254,9 +254,13 @@ struct payment {
* true. Set only on the root payment. */
bool abort;
/* Serialized bolt11 string, kept attachd to the root so we can filter
/* Serialized bolt11/12 string, kept attachd to the root so we can filter
* by the invoice. */
const char *bolt11;
const char *invstring;
/* 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;
/* Textual explanation of why this payment was attempted. */
const char *why;