Browse Source

paymod: Add label to sendonion calls

These get reflected in the `listsendpays` command, and are quite useful.
keysend
Christian Decker 5 years ago
parent
commit
d8b8a0b31e
  1. 3
      plugins/libplugin-pay.c

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

Loading…
Cancel
Save