exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d8f211be91e1e2fbfbd08420e7fb15549d22a54c
parent 05115940eb44db255483cafeeb509c56c2ec8fd2
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat, 15 Mar 2025 11:55:27 +0100

exit on hard error instead of trying again

Diffstat:
Msrc/exchange/taler-exchange-aggregator.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c @@ -1314,8 +1314,7 @@ drain_kyc_alerts (void *cls) db_plugin->rollback (db_plugin->cls); GNUNET_free (au); GNUNET_assert (NULL == task); - task = GNUNET_SCHEDULER_add_now (&drain_kyc_alerts, - NULL); + GNUNET_SCHEDULER_shutdown (); return; case GNUNET_DB_STATUS_SOFT_ERROR: db_plugin->rollback (db_plugin->cls); @@ -1326,10 +1325,7 @@ drain_kyc_alerts (void *cls) return; case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: GNUNET_free (au); - qs = db_plugin->commit (db_plugin->cls); - if (qs < 0) - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Failed to commit KYC drain\n"); + db_plugin->rollback (db_plugin->cls); GNUNET_assert (NULL == task); task = GNUNET_SCHEDULER_add_now (&run_shard, NULL);