plugin/offers: connect if necessary for replying to invoice_request.

You can disable this with `fetchinvoice-noconnect`.

Changelog-EXPERIMENTAL: We will now reply to invoice_request messages even if reply path requires us to make an outgoing connection (LDK does this)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-05-13 18:19:45 +09:30
parent 2e1274ba76
commit 8714289c8c
6 changed files with 105 additions and 32 deletions

View File

@@ -7,6 +7,7 @@ extern u16 cltv_final;
extern u32 blockheight;
extern struct secret invoicesecret_base;
extern struct pubkey id;
extern bool disable_connect;
/* We got an onionmessage with an invreq! */
struct command_result *handle_invoice_request(struct command *cmd,