donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit ef25f4df19a9644335c9eef6953f529430a1345b
parent 165cfdb3dabd97ed7f395d0bef275d3accc2e6bd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 27 Mar 2024 14:01:59 +0100

comments

Diffstat:
Msrc/donau/donau-httpd_keys.c | 8++++----
Msrc/donau/donau-httpd_post-batch-issue.c | 4++++
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c @@ -473,9 +473,9 @@ insert_donation_unit_cb (void *cls, DONAU_JSON_pack_donation_unit_pub ("donation_unit_pub", &du->donation_unit_pub), GNUNET_JSON_pack_uint64 ("year", - du->validity_year) // , - // TALER_JSON_pack_amount ("value", // FIXME - // &du->value) + du->validity_year), + TALER_JSON_pack_amount ("value", // FIXME + &du->value) ))); return GNUNET_OK; } @@ -1074,7 +1074,7 @@ helper_rsa_cb ( // if (NULL != hd) // { // /* should be just an update (revocation!), so update existing entry */ - // hd->validity_duration = validity_duration; + // hd->validity_duration = validity_duration; hd->lost = false; // return; // } GNUNET_assert (NULL != sm_pub); diff --git a/src/donau/donau-httpd_post-batch-issue.c b/src/donau/donau-httpd_post-batch-issue.c @@ -260,6 +260,7 @@ DH_handler_issue_receipts_post (struct DH_RequestContext *rc, &temp_hash); GNUNET_CRYPTO_hash_xor (&h_receipts.hash, &temp_hash, &h_receipts.hash); } +start: qs_check_receipts = DH_plugin->lookup_issued_receipts (DH_plugin->cls, h_receipts, &check_receipts_meta); @@ -362,6 +363,9 @@ DH_handler_issue_receipts_post (struct DH_RequestContext *rc, TALER_EC_GENERIC_DB_FETCH_FAILED, NULL); case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: + GNUNET_assert (! second_time); + second_time = true; + goto start; case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT: break; }