exchange

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

commit 53643aa7b9c563ca3d6535b42dfc6fe71d5a13d2
parent 51f4c2f199cd29264ff1cc2154a13a016b1805c1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 12 Oct 2026 23:41:33 +0200

fix another restart place

Diffstat:
Msrc/exchange/taler-exchange-sanctionscheck.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-sanctionscheck.c b/src/exchange/taler-exchange-sanctionscheck.c @@ -298,7 +298,9 @@ commit_transaction (void) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to commit DB transaction\n"); - global_ret = EXIT_NOTCONFIGURED; + /* Transient (e.g. serialization failure): let the supervisor + restart us; EXIT_NOTCONFIGURED would prevent that. */ + global_ret = EXIT_FAILURE; GNUNET_SCHEDULER_shutdown (); return; } @@ -439,8 +441,7 @@ sanction_cb (void *cls, { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to commit DB transaction\n"); - /* Transient (e.g. serialization failure): let the supervisor - restart us; EXIT_NOTCONFIGURED would prevent that. */ + /* Transient failure, make sure to us global_ret that allows restart */ global_ret = EXIT_FAILURE; GNUNET_SCHEDULER_shutdown (); return;