From 575c10027bc6b6bff2da5e7c485d88ef44c54c65 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 Jul 2020 22:00:01 +0200 Subject: also offer API for receiving rounded relative time via JSON --- src/lib/exchange_api_handle.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib') 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 (); -- cgit v1.2.3