From df8c011b95cfaaf3040350f7b416c12f3771eb60 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 26 Sep 2016 14:58:44 +0200 Subject: return execution time also from exchange C API (#4578) --- src/exchangedb/test_exchangedb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/exchangedb/test_exchangedb.c') diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 9941494a..00c7a9ef 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -708,6 +708,7 @@ static void cb_wt_never (void *cls, const struct TALER_MerchantPublicKeyP *merchant_pub, const struct GNUNET_HashCode *h_wire, + struct GNUNET_TIME_Absolute exec_time, const struct GNUNET_HashCode *h_contract, uint64_t transaction_id, const struct TALER_CoinSpendPublicKeyP *coin_pub, @@ -751,6 +752,7 @@ static void cb_wt_check (void *cls, const struct TALER_MerchantPublicKeyP *merchant_pub, const struct GNUNET_HashCode *h_wire, + struct GNUNET_TIME_Absolute exec_time, const struct GNUNET_HashCode *h_contract, uint64_t transaction_id, const struct TALER_CoinSpendPublicKeyP *coin_pub, @@ -764,6 +766,7 @@ cb_wt_check (void *cls, GNUNET_assert (0 == memcmp (h_wire, &h_wire_wt, sizeof (struct GNUNET_HashCode))); + GNUNET_assert (exec_time.abs_value_us == execution_time_wt.abs_value_us); GNUNET_assert (0 == memcmp (h_contract, &h_contract_wt, sizeof (struct GNUNET_HashCode))); -- cgit v1.2.3