gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: -fix amount test


From: gnunet
Subject: [taler-anastasis] branch master updated: -fix amount test
Date: Tue, 07 Sep 2021 23:32:17 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 78eee0a  -fix amount test
78eee0a is described below

commit 78eee0a8bc53f7ec75799e2b5fcfa1a62b09be15
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Sep 7 23:32:13 2021 +0200

    -fix amount test
---
 debian/changelog                    | 6 ++++++
 src/backend/anastasis-httpd_truth.c | 5 ++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 80c06a1..d972a47 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+anastasis (0.1.0-5) unstable; urgency=low
+
+  * Fix amount check for payments (upstream fix).
+
+ -- Christian Grothoff <grothoff@gnu.org>  Tue, 07 Sep 2021 23:08:18 +0200
+
 anastasis (0.1.0-4) unstable; urgency=low
 
   * Fix plugin packaging (upstream fix).
diff --git a/src/backend/anastasis-httpd_truth.c 
b/src/backend/anastasis-httpd_truth.c
index 50cd75b..4dd3ddc 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -76,7 +76,7 @@ struct GetContext
   struct ANASTASIS_CRYPTO_TruthKeyP truth_key;
 
   /**
-   * true if client provided a payment secret / order ID?
+   * Cost for paying the challenge.
    */
   struct TALER_Amount challenge_cost;
 
@@ -1211,8 +1211,7 @@ AH_handler_truth_get (
   if ( (is_question) ||
        (! gc->authorization->payment_plugin_managed) )
   {
-    if ( (0 == gc->challenge_cost.value) &&
-         (0 == gc->challenge_cost.fraction) )
+    if (! TALER_amount_is_zero (&gc->challenge_cost))
     {
       /* Check database to see if the transaction is paid for */
       enum GNUNET_DB_QueryStatus qs;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]