aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-13 20:51:04 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-13 21:16:50 +0200
commit0f3490dc022620c7e42b86426e14198a04c2e17f (patch)
tree0b16661ae6aa9273bf81652fe6a8806060b31fb0 /src/backenddb
parenta5f50083e65a3e9a0945b150701349afa81a0e9e (diff)
more work on multicurrency support: use checks everywhere...
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/pg_increase_refund.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backenddb/pg_increase_refund.c b/src/backenddb/pg_increase_refund.c
index 832a84eb..eef7adc6 100644
--- a/src/backenddb/pg_increase_refund.c
+++ b/src/backenddb/pg_increase_refund.c
@@ -91,7 +91,14 @@ process_refund_cb (void *cls,
ictx->err = true;
return;
}
- /* FIXME: #7951 */
+ if (GNUNET_OK !=
+ TALER_amount_cmp_currency (&ictx->refunded_amount,
+ &acc))
+ {
+ GNUNET_break (0);
+ ictx->err = true;
+ return;
+ }
if (0 >
TALER_amount_add (&ictx->refunded_amount,
&ictx->refunded_amount,