diff options
Diffstat (limited to 'src/backenddb')
-rw-r--r-- | src/backenddb/pg_increase_refund.c | 9 |
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, |