aboutsummaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd_truth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/anastasis-httpd_truth.c')
-rw-r--r--src/backend/anastasis-httpd_truth.c5
1 files changed, 2 insertions, 3 deletions
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;