From e8ec7d29a3fb05101eb2f8925e0090aff211eae2 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 11 Jun 2020 15:45:32 +0200 Subject: [PATCH] paymod: Add label to sendonion calls These get reflected in the `listsendpays` command, and are quite useful. --- plugins/libplugin-pay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index 8f13316a5..042f513ee 100644 --- a/plugins/libplugin-pay.c +++ b/plugins/libplugin-pay.c @@ -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); }