From 302a08b7018b18a18939d49e132ca8db78a2be9a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 26 Sep 2016 14:50:49 +0200 Subject: implement that /track/transaction returns execution time (#4578) --- src/exchangedb/plugin_exchangedb_postgres.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index bd8670eb7..a90ff849d 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -3757,8 +3757,8 @@ postgres_lookup_wire_transfer (void *cls, /* check if the melt record exists and get it */ result = GNUNET_PQ_exec_prepared (session->conn, - "lookup_transactions", - params); + "lookup_transactions", + params); if (PGRES_TUPLES_OK != PQresultStatus (result)) { BREAK_DB_ERR (result); @@ -3794,7 +3794,10 @@ postgres_lookup_wire_transfer (void *cls, TALER_PQ_result_spec_amount ("fee_deposit", &deposit_fee), GNUNET_PQ_result_spec_end }; - if (GNUNET_OK != GNUNET_PQ_extract_result (result, rs, i)) + if (GNUNET_OK != + GNUNET_PQ_extract_result (result, + rs, + i)) { GNUNET_break (0); PQclear (result); @@ -3803,6 +3806,7 @@ postgres_lookup_wire_transfer (void *cls, cb (cb_cls, &merchant_pub, &h_wire, + exec_time, &h_contract, transaction_id, &coin_pub, -- cgit v1.2.3