exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 0659100bdff687d87a2cb0242fc26a18d70c710b
parent 5601a81d4dbefcd62ff84b2d6b8802046dc8520a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 22 Jan 2016 17:21:14 +0100

use correct field name

Diffstat:
Msrc/mintdb/plugin_mintdb_postgres.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c @@ -3620,7 +3620,7 @@ postgres_wire_lookup_deposit_wtid (void *cls, if (0 == nrows) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "lookup_wire_transfer() returned 0 matching rows\n"); + "lookup_deposit_wtid returned 0 matching rows\n"); PQclear (result); /* Check if transaction exists in deposits, so that we just @@ -3649,6 +3649,8 @@ postgres_wire_lookup_deposit_wtid (void *cls, nrows = PQntuples (result); if (0 == nrows) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "get_deposit_for_wtid returned 0 matching rows\n"); PQclear (result); return GNUNET_NO; } @@ -3660,11 +3662,12 @@ postgres_wire_lookup_deposit_wtid (void *cls, struct TALER_Amount coin_amount; struct TALER_Amount coin_fee; struct TALER_PQ_ResultSpec rs[] = { - TALER_PQ_result_spec_amount ("coin_amount", &coin_amount), + TALER_PQ_result_spec_amount ("amount_with_fee", &coin_amount), TALER_PQ_result_spec_amount ("deposit_fee", &coin_fee), TALER_PQ_result_spec_absolute_time ("wire_deadline", &exec_time), TALER_PQ_result_spec_end }; + if (GNUNET_OK != TALER_PQ_extract_result (result, rs, 0)) { GNUNET_break (0);