paymod: Add label to sendonion calls

These get reflected in the `listsendpays` command, and are quite useful.
This commit is contained in:
Christian Decker 2020-06-11 15:45:32 +02:00
parent 2649de54f2
commit d8b8a0b31e

View File

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