summaryrefslogtreecommitdiff
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
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;