plugins/libplugin-pay: hack in blinded path support.

We simply take the first one, and route to the start of that.  Then we
append the blinded path to the onion construction.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-11-09 12:00:10 +10:30
committed by Christian Decker
parent 8720bbedae
commit 01a47720c3
6 changed files with 114 additions and 15 deletions

View File

@@ -174,6 +174,8 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf,
p->destination = tal_steal(p, destination);
p->payment_secret = NULL;
p->payment_metadata = NULL;
p->blindedpath = NULL;
p->blindedpay = NULL;
p->amount = *msat;
p->routes = tal_steal(p, hints);
// 22 is the Rust-Lightning default and the highest minimum we know of.