exchange

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

commit 1f36e00b82144a4bc66494cc0625fe4b1b772906
parent 347d6212dc6fc6cc0cc099b5206df9598148b869
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  8 Nov 2026 22:50:48 +0100

immediately bail on DB failure

Diffstat:
Msrc/auditor/taler-helper-auditor-coins.c | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c @@ -2029,6 +2029,12 @@ deposit_cb (struct CoinContext *cc, qs = TALER_ARL_get_denomination_info (denom_pub, &issue, NULL); + if (0 > qs) + { + GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); + cc->qs = qs; + return GNUNET_SYSERR; + } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { qs = report_row_inconsistency ("deposits", @@ -2056,13 +2062,6 @@ deposit_cb (struct CoinContext *cc, return GNUNET_SYSERR; } } - - if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) - { - GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); - cc->qs = qs; - return GNUNET_SYSERR; - } qs = check_known_coin ("deposit", issue, rowid,