diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-09-07 23:32:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-09-07 23:32:13 +0200 |
commit | 78eee0a8bc53f7ec75799e2b5fcfa1a62b09be15 (patch) | |
tree | a6d43cc5d8dc2b3a7f3719fee13024a1b2f1fa56 | |
parent | 2cd354167edcbd9542160f3ec94493a8ecf09e8c (diff) | |
download | anastasis-78eee0a8bc53f7ec75799e2b5fcfa1a62b09be15.tar.gz anastasis-78eee0a8bc53f7ec75799e2b5fcfa1a62b09be15.zip |
-fix amount testv0.1.0
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | 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 @@ | |||
1 | anastasis (0.1.0-5) unstable; urgency=low | ||
2 | |||
3 | * Fix amount check for payments (upstream fix). | ||
4 | |||
5 | -- Christian Grothoff <grothoff@gnu.org> Tue, 07 Sep 2021 23:08:18 +0200 | ||
6 | |||
1 | anastasis (0.1.0-4) unstable; urgency=low | 7 | anastasis (0.1.0-4) unstable; urgency=low |
2 | 8 | ||
3 | * Fix plugin packaging (upstream fix). | 9 | * 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 | |||
76 | struct ANASTASIS_CRYPTO_TruthKeyP truth_key; | 76 | struct ANASTASIS_CRYPTO_TruthKeyP truth_key; |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * true if client provided a payment secret / order ID? | 79 | * Cost for paying the challenge. |
80 | */ | 80 | */ |
81 | struct TALER_Amount challenge_cost; | 81 | struct TALER_Amount challenge_cost; |
82 | 82 | ||
@@ -1211,8 +1211,7 @@ AH_handler_truth_get ( | |||
1211 | if ( (is_question) || | 1211 | if ( (is_question) || |
1212 | (! gc->authorization->payment_plugin_managed) ) | 1212 | (! gc->authorization->payment_plugin_managed) ) |
1213 | { | 1213 | { |
1214 | if ( (0 == gc->challenge_cost.value) && | 1214 | if (! TALER_amount_is_zero (&gc->challenge_cost)) |
1215 | (0 == gc->challenge_cost.fraction) ) | ||
1216 | { | 1215 | { |
1217 | /* Check database to see if the transaction is paid for */ | 1216 | /* Check database to see if the transaction is paid for */ |
1218 | enum GNUNET_DB_QueryStatus qs; | 1217 | enum GNUNET_DB_QueryStatus qs; |