plugins/pay: send payment_metadata if provided in invoice.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Protocol: `pay` (and decode, etc) supports bolt11 payment_metadata a-la https://github.com/lightning/bolts/pull/912
This commit is contained in:
Rusty Russell
2022-03-31 19:40:50 +10:30
parent 7f89763f9e
commit 1c685ce3e8
5 changed files with 48 additions and 6 deletions

View File

@@ -180,6 +180,9 @@ struct payment {
/* Payment secret, from the invoice if any. */
struct secret *payment_secret;
/* Payment metadata, from the invoice if any. */
u8 *payment_metadata;
u64 groupid;
u32 partid;
u32 next_partid;