diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-07 20:22:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-07 20:22:02 +0200 |
commit | 7ab9d526f23d52d87d47aa195351022db3748d2c (patch) | |
tree | 2e0f9e4a077098a0babebb2b79530c189cbc8278 /src/testing/testing_api_cmd_auditor_deposit_confirmation.c | |
parent | af52541eacf5305977701fa24a530797994feb19 (diff) | |
download | exchange-7ab9d526f23d52d87d47aa195351022db3748d2c.tar.gz exchange-7ab9d526f23d52d87d47aa195351022db3748d2c.tar.bz2 exchange-7ab9d526f23d52d87d47aa195351022db3748d2c.zip |
towards changing timestamp in deposit confirmation (tests failing)
Diffstat (limited to 'src/testing/testing_api_cmd_auditor_deposit_confirmation.c')
-rw-r--r-- | src/testing/testing_api_cmd_auditor_deposit_confirmation.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_auditor_deposit_confirmation.c b/src/testing/testing_api_cmd_auditor_deposit_confirmation.c index 247399a9d..1442380bf 100644 --- a/src/testing/testing_api_cmd_auditor_deposit_confirmation.c +++ b/src/testing/testing_api_cmd_auditor_deposit_confirmation.c @@ -203,6 +203,7 @@ deposit_confirmation_run (void *cls, const struct TALER_TESTING_Command *deposit_cmd; struct GNUNET_HashCode h_wire; struct GNUNET_HashCode h_contract_terms; + const struct GNUNET_TIME_Absolute *exchange_timestamp = NULL; struct GNUNET_TIME_Absolute timestamp; struct GNUNET_TIME_Absolute refund_deadline; struct TALER_Amount amount_without_fee; @@ -238,6 +239,11 @@ deposit_confirmation_run (void *cls, TALER_TESTING_get_trait_exchange_sig (deposit_cmd, dcs->coin_index, &exchange_sig)); + GNUNET_assert (GNUNET_OK == + TALER_TESTING_get_trait_absolute_time (deposit_cmd, + dcs->coin_index, + &exchange_timestamp)); + GNUNET_assert (NULL != exchange_timestamp); keys = TALER_EXCHANGE_get_keys (dcs->is->exchange); GNUNET_assert (NULL != keys); spk = TALER_EXCHANGE_get_signing_key_info (keys, @@ -309,7 +315,7 @@ deposit_confirmation_run (void *cls, dcs->dc = TALER_AUDITOR_deposit_confirmation (dcs->auditor, &h_wire, &h_contract_terms, - timestamp, + *exchange_timestamp, refund_deadline, &amount_without_fee, &coin_pub, |