mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
paymod: Add label to sendonion calls
These get reflected in the `listsendpays` command, and are quite useful.
This commit is contained in:
parent
2649de54f2
commit
d8b8a0b31e
@ -793,6 +793,9 @@ static struct command_result *payment_createonion_success(struct command *cmd,
|
||||
|
||||
json_add_num(req->js, "partid", p->partid);
|
||||
|
||||
if (p->label)
|
||||
json_add_string(req->js, "label", p->label);
|
||||
|
||||
send_outreq(p->plugin, req);
|
||||
return command_still_pending(cmd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user