mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
offers: enable label for invoicerequest
This commit is contained in:
@@ -20,6 +20,10 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
"absolute_expiry": {
|
"absolute_expiry": {
|
||||||
"type": "u64",
|
"type": "u64",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ struct command_result *json_invoicerequest(struct command *cmd,
|
|||||||
json_add_bool(req->js, "exposeid", true);
|
json_add_bool(req->js, "exposeid", true);
|
||||||
json_add_bool(req->js, "single_use", *single_use);
|
json_add_bool(req->js, "single_use", *single_use);
|
||||||
if (label)
|
if (label)
|
||||||
json_add_string(req->js, "label", label);
|
json_add_string(req->js, "recurrence_label", label);
|
||||||
return send_outreq(cmd->plugin, req);
|
return send_outreq(cmd->plugin, req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user