summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_get_transfers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-14 16:10:40 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-14 16:10:40 +0100
commitad5d54f48534ac0ad5bfd7f048bd7782e674a89b (patch)
tree4443e41c1aec412d82642b194aa3d837c9eb5cfd /src/testing/testing_api_cmd_get_transfers.c
parent49e2e44b09dd845d0922c0acef5ff487b52bf26d (diff)
downloadmerchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.gz
merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.bz2
merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.zip
migration to protocol v11
Diffstat (limited to 'src/testing/testing_api_cmd_get_transfers.c')
-rw-r--r--src/testing/testing_api_cmd_get_transfers.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/testing/testing_api_cmd_get_transfers.c b/src/testing/testing_api_cmd_get_transfers.c
index 59e0ecf8..fe50c349 100644
--- a/src/testing/testing_api_cmd_get_transfers.c
+++ b/src/testing/testing_api_cmd_get_transfers.c
@@ -225,20 +225,21 @@ get_transfers_cb (
}
}
{
- const struct GNUNET_TIME_Absolute *execution_time;
+ const struct GNUNET_TIME_Timestamp *execution_time;
if (GNUNET_OK !=
- TALER_TESTING_get_trait_absolute_time (transfer_cmd,
- 0,
- &execution_time))
+ TALER_TESTING_get_trait_timestamp (transfer_cmd,
+ 0,
+ &execution_time))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not fetch wire transfer execution time\n");
TALER_TESTING_interpreter_fail (gts->is);
return;
}
- if (execution_time->abs_value_us !=
- transfers[i].execution_time.abs_value_us)
+ if (GNUNET_TIME_timestamp_cmp (*execution_time,
+ !=,
+ transfers[i].execution_time))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Wire transfer execution time does not match\n");
@@ -274,8 +275,8 @@ get_transfers_run (void *cls,
gts->gth = TALER_MERCHANT_transfers_get (is->ctx,
gts->merchant_url,
gts->payto_uri,
- GNUNET_TIME_UNIT_FOREVER_ABS,
- GNUNET_TIME_UNIT_ZERO_ABS,
+ GNUNET_TIME_UNIT_FOREVER_TS,
+ GNUNET_TIME_UNIT_ZERO_TS,
INT64_MAX,
0,
TALER_EXCHANGE_YNA_ALL,