From b4965db0d26a85787e1fd430e1591c50f8dd1279 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Apr 2022 20:49:11 +0200 Subject: -fix fieldnames, regenerated DBs --- src/lib/exchange_api_handle.c | 6 +++--- src/lib/exchange_api_purse_create_with_merge.c | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 6528c56d..0ad8e5b7 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -521,13 +521,13 @@ parse_global_fee (struct TALER_EXCHANGE_GlobalFee *gf, const struct TALER_EXCHANGE_Keys *key_data) { struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_timestamp ("start_time", + GNUNET_JSON_spec_timestamp ("start_date", &gf->start_date), - GNUNET_JSON_spec_timestamp ("end_time", + GNUNET_JSON_spec_timestamp ("end_date", &gf->end_date), GNUNET_JSON_spec_relative_time ("purse_timeout", &gf->purse_timeout), - GNUNET_JSON_spec_relative_time ("kyc_timeout", + GNUNET_JSON_spec_relative_time ("account_kyc_timeout", &gf->kyc_timeout), GNUNET_JSON_spec_relative_time ("history_expiration", &gf->history_expiration), diff --git a/src/lib/exchange_api_purse_create_with_merge.c b/src/lib/exchange_api_purse_create_with_merge.c index acf60cee..c1ccf7b8 100644 --- a/src/lib/exchange_api_purse_create_with_merge.c +++ b/src/lib/exchange_api_purse_create_with_merge.c @@ -294,7 +294,6 @@ TALER_EXCHANGE_purse_create_with_merge ( &contract_pub.ecdhe_pub); { - // FIXME: get purse expiration time from contract? struct GNUNET_JSON_Specification spec[] = { TALER_JSON_spec_amount_any ("amount", &pcm->purse_value_after_fees), @@ -302,8 +301,7 @@ TALER_EXCHANGE_purse_create_with_merge ( GNUNET_JSON_spec_uint32 ("minimum_age", &min_age), NULL), - // FIXME: correct field name? - GNUNET_JSON_spec_timestamp ("payment_deadline", + GNUNET_JSON_spec_timestamp ("pay_deadline", &pcm->purse_expiration), GNUNET_JSON_spec_end () }; -- cgit v1.2.3