summaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-23 21:52:18 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-23 21:52:18 +0100
commit176113a62afbd84d907859f6e90ed2e74856af5a (patch)
treec365eb8e8bcd5eff9f510e6e21a52a6b7317395d /src/auditor
parenta66b9e1b8aa5d49d2dbd0ce29e8c65d20f2e7997 (diff)
downloadexchange-176113a62afbd84d907859f6e90ed2e74856af5a.tar.gz
exchange-176113a62afbd84d907859f6e90ed2e74856af5a.tar.bz2
exchange-176113a62afbd84d907859f6e90ed2e74856af5a.zip
fix some auditor assertions (see #6106)
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-auditor.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 1e9b899f2..948f19492 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -786,9 +786,11 @@ get_denomination_info_by_hash (const struct GNUNET_HashCode *dh,
*issue = i;
return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
}
- /* This should be impossible; hard error */
- GNUNET_break (0);
- return GNUNET_DB_STATUS_HARD_ERROR;
+ /* We found more keys, but not the denomination we are looking for :-( */
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Denomination %s not found\n",
+ TALER_B2S (dh));
+ return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;
}
@@ -2927,13 +2929,12 @@ check_wire_out_cb (void *cls,
&currency_round_unit));
/* Calculate the exchange's gain as the fees plus rounding differences! */
- if (GNUNET_OK !=
+ if (GNUNET_SYSERR ==
TALER_amount_subtract (&exchange_gain,
&wcc.total_deposits,
&final_amount))
{
GNUNET_break (0);
- // FIXME: we should report an arithmetic error here!
ac->qs = GNUNET_DB_STATUS_HARD_ERROR;
return GNUNET_SYSERR;
}