mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
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:
@@ -179,6 +179,7 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf,
|
||||
p->json_toks = params;
|
||||
p->destination = tal_steal(p, destination);
|
||||
p->payment_secret = NULL;
|
||||
p->payment_metadata = NULL;
|
||||
p->amount = *msat;
|
||||
p->routes = tal_steal(p, hints);
|
||||
// 22 is the Rust-Lightning default and the highest minimum we know of.
|
||||
|
||||
Reference in New Issue
Block a user