exchange

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

commit 9eea1687feb74c5a0b2a785cd691677bfcdfc0af
parent 106c8bbdfde6aac610d703b3f9a34ded1b4526d4
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  8 Nov 2026 23:13:27 +0100

handle DB error properly

Diffstat:
Msrc/auditor/taler-helper-auditor-aggregation.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c @@ -1288,6 +1288,17 @@ check_wire_out_cb (struct AggregationContext *ac, "Inconsistency for wire_out %llu (WTID %s) detected\n", (unsigned long long) rowid, TALER_B2S (wtid)); + if (0 > wcc.qs) + { + /* The coin loop was aborted by a database failure, so + wcc.total_deposits only covers a prefix of the coins. Do not + publish that truncated figure and do not advance the checkpoint + past this row. */ + GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == wcc.qs); + ac->qs = wcc.qs; + GNUNET_free (method); + return GNUNET_SYSERR; + } }