mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
paymod: Let the payment know the local ID
This is necessary for the routehint modifier.
This commit is contained in:
parent
097cb8d3a0
commit
1b057f025c
@ -150,6 +150,7 @@ struct payment {
|
||||
struct command *cmd;
|
||||
struct plugin *plugin;
|
||||
struct list_node list;
|
||||
struct node_id *local_id;
|
||||
|
||||
const char *json_buffer;
|
||||
const jsmntok_t *json_toks;
|
||||
|
@ -1887,6 +1887,7 @@ static struct command_result *json_paymod(struct command *cmd,
|
||||
"Invalid bolt11:"
|
||||
" sets feature var_onion with no secret");
|
||||
|
||||
p->local_id = &my_id;
|
||||
p->json_buffer = tal_steal(p, buf);
|
||||
p->json_toks = params;
|
||||
p->destination = p->getroute_destination = &b11->receiver_id;
|
||||
|
Loading…
Reference in New Issue
Block a user