summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 22:00:01 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 22:00:01 +0200
commit575c10027bc6b6bff2da5e7c485d88ef44c54c65 (patch)
tree5812f8a2e746da966f501211b37e98ce70151942 /src/lib/exchange_api_handle.c
parent54e63f01df85ee0470493c6d0de29576ce3371c4 (diff)
downloadexchange-575c10027bc6b6bff2da5e7c485d88ef44c54c65.tar.gz
exchange-575c10027bc6b6bff2da5e7c485d88ef44c54c65.tar.bz2
exchange-575c10027bc6b6bff2da5e7c485d88ef44c54c65.zip
also offer API for receiving rounded relative time via JSON
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index ab4af8ae8..374312a1b 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -827,8 +827,8 @@ decode_keys_json (const json_t *resp_obj,
&key_data->master_pub),
TALER_JSON_spec_absolute_time ("list_issue_date",
&key_data->list_issue_date),
- GNUNET_JSON_spec_relative_time ("reserve_closing_delay",
- &key_data->reserve_closing_delay),
+ TALER_JSON_spec_relative_time ("reserve_closing_delay",
+ &key_data->reserve_closing_delay),
GNUNET_JSON_spec_end ()
};
@@ -887,8 +887,6 @@ decode_keys_json (const json_t *resp_obj,
GNUNET_JSON_parse (resp_obj,
(check_sig) ? mspec : &mspec[2],
NULL, NULL));
- EXITIF (GNUNET_OK !=
- GNUNET_TIME_round_rel (&key_data->reserve_closing_delay));
/* parse the master public key and issue date of the response */
if (check_sig)
hash_context = GNUNET_CRYPTO_hash_context_start ();