plugins/pay: pay to invoices where first hop is a short_channel_id_dir.

Changelog-Added: Protocol: pay can now pay to bolt12 invoices if entry to blinded hop is specified as a short_channel_id (rather than node id).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-07-17 18:36:11 +09:30
parent b29b96aae8
commit f00f832b96
7 changed files with 63 additions and 7 deletions

View File

@@ -494,6 +494,9 @@ void payment_abort(struct payment *p, const char *fmt, ...) PRINTF_FMT(2,3);
struct payment *payment_root(struct payment *p);
struct payment_tree_result payment_collect_result(struct payment *p);
/* If you need an unmodified gossmap */
struct gossmap *get_raw_gossmap(struct payment *payment);
/* Add fields for successful payment: result can be NULL for selfpay */
void json_add_payment_success(struct json_stream *js,
struct payment *p,