diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:50:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:50:49 +0200 |
commit | 302a08b7018b18a18939d49e132ca8db78a2be9a (patch) | |
tree | 44ab352820b814d87663ccd33cb8c5727bc44b1d /src/exchangedb/plugin_exchangedb_postgres.c | |
parent | 265fc74b656910dda559f410aa140c57de261cc9 (diff) | |
download | exchange-302a08b7018b18a18939d49e132ca8db78a2be9a.tar.xz |
implement that /track/transaction returns execution time (#4578)
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 10 |
1 files changed, 7 insertions, 3 deletions
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, |