commit 95cebdae461e6da9a0f433a0ad212c0363aea10f
parent 2072cb3b2827b898b526310e6b3191bc31b30916
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 16 Aug 2026 08:52:19 +0200
handle NO_RESULTS
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c
@@ -1450,6 +1450,20 @@ refresh_session_cb (struct CoinContext *cc,
cc->qs = qs;
return GNUNET_SYSERR;
}
+ if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
+ {
+ /* nis[i] was not set; we cannot audit this refresh at all */
+ qs = report_row_inconsistency ("refresh_reveal",
+ rowid,
+ "denomination key for fresh coin not found");
+ if (0 > qs)
+ {
+ GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs);
+ cc->qs = qs;
+ return GNUNET_SYSERR;
+ }
+ return GNUNET_OK;
+ }
/* update cost of refresh */
TALER_ARL_amount_add (&refresh_cost,
&refresh_cost,