paymod: Let the payment know the local ID

This is necessary for the routehint modifier.
This commit is contained in:
Christian Decker
2020-05-30 15:33:49 +02:00
parent 097cb8d3a0
commit 1b057f025c
2 changed files with 2 additions and 0 deletions

View File

@@ -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;