mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
json-rpc: Retrieve the invoice description in listinvoices
This commit is contained in:
committed by
Rusty Russell
parent
7f45947523
commit
259a69994d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user