diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 17ddab67..61051b9a 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -883,8 +883,6 @@ update_stefan (struct OrderContext *oc, { struct TALER_Amount net; - if (0 == keys->num_denom_keys) - sleep (600); if (GNUNET_SYSERR != TALER_EXCHANGE_keys_stefan_b2n (keys, &oc->brutto, @@ -1078,7 +1076,7 @@ set_max_fee (struct OrderContext *oc) stefan = oc->max_stefan_fee; else GNUNET_assert (GNUNET_OK == - TALER_amount_set_zero (TMH_currency, + TALER_amount_set_zero (oc->brutto.currency, &stefan)); GNUNET_assert (0 == json_object_set_new ( @@ -1086,7 +1084,6 @@ set_max_fee (struct OrderContext *oc) "max_fee", TALER_JSON_from_amount (&stefan))); } - oc->phase++; } @@ -1198,9 +1195,8 @@ patch_order (struct OrderContext *oc) GNUNET_JSON_spec_string ("order_id", &order_id), NULL), - TALER_JSON_spec_amount ("amount", - TMH_currency, - &oc->brutto), + TALER_JSON_spec_amount_any ("amount", + &oc->brutto), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("fulfillment_url", &fulfillment_url), @@ -1222,9 +1218,8 @@ patch_order (struct OrderContext *oc) &wire_deadline), NULL), GNUNET_JSON_spec_mark_optional ( - TALER_JSON_spec_amount ("max_fee", - TMH_currency, - &oc->max_fee), + TALER_JSON_spec_amount_any ("max_fee", + &oc->max_fee), NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_timestamp ("delivery_date", |