[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: check no coins
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: check no coins |
Date: |
Thu, 22 Jul 2021 18:56:39 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 334b2f95 check no coins
334b2f95 is described below
commit 334b2f954b029c85244472e2e22d1a84b9b592db
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Jul 22 13:55:57 2021 -0300
check no coins
---
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
index 71457c85..94f40158 100644
--- 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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: check no coins,
gnunet <=