From 1a1fafbd438f3f21a15c990d904e192b045d2391 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 14 Dec 2021 16:04:32 +0100 Subject: introducing GNUNET_TIME_Timestamp, recoup now with amounts --- src/exchange/taler-exchange-httpd_kyc-check.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_kyc-check.c') diff --git a/src/exchange/taler-exchange-httpd_kyc-check.c b/src/exchange/taler-exchange-httpd_kyc-check.c index 1edbbf2aa..7560d6262 100644 --- a/src/exchange/taler-exchange-httpd_kyc-check.c +++ b/src/exchange/taler-exchange-httpd_kyc-check.c @@ -236,7 +236,7 @@ TEH_handler_kyc_check ( struct KycPoller *kyp = rc->rh_ctx; MHD_RESULT res; enum GNUNET_GenericReturnValue ret; - struct GNUNET_TIME_Absolute now; + struct GNUNET_TIME_Timestamp now; if (NULL == kyp) { @@ -347,8 +347,7 @@ TEH_handler_kyc_check ( rc); } - now = GNUNET_TIME_absolute_get (); - (void) GNUNET_TIME_round_abs (&now); + now = GNUNET_TIME_timestamp_get (); ret = TEH_DB_run_transaction (rc->connection, "kyc check", TEH_MT_OTHER, @@ -420,7 +419,7 @@ TEH_handler_kyc_check ( TALER_SIGNATURE_EXCHANGE_ACCOUNT_SETUP_SUCCESS), .purpose.size = htonl (sizeof (as)), .h_payto = kyp->h_payto, - .timestamp = GNUNET_TIME_absolute_hton (now) + .timestamp = GNUNET_TIME_timestamp_hton (now) }; enum TALER_ErrorCode ec; @@ -440,8 +439,8 @@ TEH_handler_kyc_check ( &sig), GNUNET_JSON_pack_data_auto ("exchange_pub", &pub), - GNUNET_JSON_pack_time_abs ("now", - now)); + GNUNET_JSON_pack_timestamp ("now", + now)); } } -- cgit v1.2.3