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