offers: create a real blinded path, if necessary.

It's just to a direct peer, and we only create one, but this is
enough to test, and make payments to non-public nodes work.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-11-09 13:02:00 +10:30
committed by Christian Decker
parent 744605997e
commit c2c9f45dac
4 changed files with 214 additions and 3 deletions

View File

@@ -4,6 +4,9 @@
#include <plugins/libplugin.h>
extern u16 cltv_final;
extern u32 blockheight;
extern struct secret invoicesecret_base;
extern struct pubkey id;
/* We got an onionmessage with an invreq! */
struct command_result *handle_invoice_request(struct command *cmd,