mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-20 13:27:36 +02:00
json-rpc: Retrieve the invoice description in listinvoices
This commit is contained in:
parent
7f45947523
commit
259a69994d
2 changed files with 13 additions and 1 deletions
|
|
@ -48,6 +48,10 @@ static void json_add_invoice(struct json_result *response,
|
|||
inv->msatoshi_received);
|
||||
json_add_u64(response, "paid_at", inv->paid_timestamp);
|
||||
}
|
||||
|
||||
if (inv->description)
|
||||
json_add_string(response, "description", inv->description);
|
||||
|
||||
json_add_u64(response, "expires_at", inv->expiry_time);
|
||||
|
||||
json_object_end(response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue