commit 09a84e2e0c53c15ffab6d787dba85a0bea0e5dbe
parent d385bca3478cdc2e9a016f769997d90e050fcdb6
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 13 Aug 2026 21:23:23 +0200
return error, do not assert on error
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_post-melt.c b/src/exchange/taler-exchange-httpd_post-melt.c
@@ -1068,12 +1068,11 @@ phase_check_melt_valid (struct MeltContext *mc)
}
if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs)
{
- /* We never saw this coin before, so _this_ justification is not OK.
- * Note that the error was already set in find_denominations. */
- GNUNET_assert (MELT_ERROR_DENOMINATION_EXPIRED ==
- mc->error.code);
- GNUNET_assert (MELT_PHASE_GENERATE_REPLY_ERROR ==
- mc->phase);
+ /* We never saw this coin before, so _this_ justification is not OK. */
+ SET_ERROR_WITH_DETAIL (mc,
+ MELT_ERROR_DENOMINATION_EXPIRED,
+ denom_h,
+ mc->request.refresh.coin.denom_pub_hash);
return;
}
/* sanity check */