commit 334b2f954b029c85244472e2e22d1a84b9b592db parent 827b3c9d2c5e2df415d48d1e5ae8a7feb2f67e8d Author: Sebastian <sebasjm@gmail.com> Date: Thu, 22 Jul 2021 13:55:57 -0300 check no coins Diffstat:
| M | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1078,7 +1078,12 @@ check_payment_sufficient (struct PayContext *pc) struct TALER_Amount total_wire_fee; struct TALER_Amount total_needed; - GNUNET_assert (0 != pc->coins_cnt); + if (0 == pc->coins_cnt) + { + return ((0 == pc->amount.value) && + (0 == pc->amount.fraction)); + } + acc_fee = pc->dc[0].deposit_fee; total_wire_fee = pc->dc[0].wire_fee; acc_amount = pc->dc[0].amount_with_fee;