json-rpc: Retrieve the invoice description in listinvoices

This commit is contained in:
Christian Decker
2018-07-24 20:56:21 +02:00
committed by Rusty Russell
parent 7f45947523
commit 259a69994d
2 changed files with 13 additions and 1 deletions

View File

@@ -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);