commit 4bd73ff9ad937af86c3c6ea87c32c61243698bba
parent 9b7f40b168cc867dd290730ea1948f91eaf2e52a
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Sat, 25 May 2024 15:08:27 +0200
some changes
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/donau/donau-httpd_batch-issue.c b/src/donau/donau-httpd_batch-issue.c
@@ -47,7 +47,7 @@ parse_json_bkp (struct DONAU_BlindedUniqueDonorIdentifierKeyPair *bkp,
const json_t *bkp_key_obj)
{
struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_fixed_auto ("h_du_pub",
+ GNUNET_JSON_spec_fixed_auto ("h_donation_unit_pub",
&bkp->h_donation_unit_pub),
DONAU_JSON_spec_blinded_donation_identifier ("blinded_udi",
&bkp->blinded_udi),
diff --git a/src/donau/donau-httpd_donation-statement.c b/src/donau/donau-httpd_donation-statement.c
@@ -121,6 +121,7 @@ DH_handler_donation_statement_get (
result = TALER_MHD_REPLY_JSON_PACK (
rc->connection,
MHD_HTTP_OK,
+ TALER_JSON_pack_amount("total", &total_donations),
GNUNET_JSON_pack_data_auto ("donation_statement",
&donau_sig));
diff --git a/src/lib/donau_api_batch_issue_receipts.c b/src/lib/donau_api_batch_issue_receipts.c
@@ -179,7 +179,7 @@ issue_receipt_body_to_json (const unsigned int num_bkp,
for (size_t i = 0; i < num_bkp; i++)
{
json_t *budikeypair = GNUNET_JSON_PACK (
- GNUNET_JSON_pack_data_auto ("h_du_pub",
+ GNUNET_JSON_pack_data_auto ("h_donation_unit_pub",
&bkp[i].h_donation_unit_pub.hash),
DONAU_JSON_pack_blinded_donation_identifier ("blinded_udi",
&bkp[i].blinded_udi));