summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_coins_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-05 23:00:15 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-05 23:00:41 +0200
commit35873463b830a16a00f167a2ac9e146d0396bbb2 (patch)
treed61a630aa67d67ae65debd1d687610055462ddef /src/exchange/taler-exchange-httpd_coins_get.c
parentd9df371f03e65284b52c13877012c6cd716845d3 (diff)
downloadexchange-35873463b830a16a00f167a2ac9e146d0396bbb2.tar.gz
exchange-35873463b830a16a00f167a2ac9e146d0396bbb2.tar.bz2
exchange-35873463b830a16a00f167a2ac9e146d0396bbb2.zip
-fixing missing '/' at end of paths in Debian package, implement coin history logicv0.9.4-dev.1
Diffstat (limited to 'src/exchange/taler-exchange-httpd_coins_get.c')
-rw-r--r--src/exchange/taler-exchange-httpd_coins_get.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_coins_get.c b/src/exchange/taler-exchange-httpd_coins_get.c
index 655a4c54a..cd453275e 100644
--- a/src/exchange/taler-exchange-httpd_coins_get.c
+++ b/src/exchange/taler-exchange-httpd_coins_get.c
@@ -544,6 +544,8 @@ TEH_handler_coins_get (struct TEH_RequestContext *rc,
char etagp[24];
struct MHD_Response *resp;
unsigned int http_status;
+ struct TALER_DenominationHashP h_denom_pub;
+ struct TALER_Amount balance;
TALER_MHD_parse_request_number (rc->connection,
"start",
@@ -612,6 +614,8 @@ TEH_handler_coins_get (struct TEH_RequestContext *rc,
start_off,
etag_in,
&etag_out,
+ &balance,
+ &h_denom_pub,
&tl);
switch (qs)
{
@@ -675,6 +679,10 @@ TEH_handler_coins_get (struct TEH_RequestContext *rc,
"Failed to compile coin history");
}
resp = TALER_MHD_MAKE_JSON_PACK (
+ GNUNET_JSON_pack_data_auto ("h_denom_pub",
+ &h_denom_pub),
+ TALER_JSON_pack_amount ("balance",
+ &balance),
GNUNET_JSON_pack_array_steal ("history",
history));
http_status = MHD_HTTP_OK;