diff options
Diffstat (limited to 'src/auditordb/pg_get_reserve_balance_summary_wrong_inconsistency.c')
-rw-r--r-- | src/auditordb/pg_get_reserve_balance_summary_wrong_inconsistency.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/auditordb/pg_get_reserve_balance_summary_wrong_inconsistency.c b/src/auditordb/pg_get_reserve_balance_summary_wrong_inconsistency.c index a2ae412f0..d41d1cbf9 100644 --- a/src/auditordb/pg_get_reserve_balance_summary_wrong_inconsistency.c +++ b/src/auditordb/pg_get_reserve_balance_summary_wrong_inconsistency.c @@ -65,6 +65,10 @@ reserve_balance_summary_wrong_inconsistency_cb (void *cls, { struct ReserveBalanceSummaryWrongInconsistencyContext *dcc = cls; struct PostgresClosure *pg = dcc->pg; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "---found rbswi's in reserveblanace...\n"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "---num_results: %u\n", num_results); + for (unsigned int i = 0; i < num_results; i++) { @@ -75,7 +79,6 @@ reserve_balance_summary_wrong_inconsistency_cb (void *cls, struct GNUNET_PQ_ResultSpec rs[] = { GNUNET_PQ_result_spec_uint64 ("row_id", &serial_id), - GNUNET_PQ_result_spec_auto_from_type ("reserve_pub", &dc.reserve_pub), TALER_PQ_RESULT_SPEC_AMOUNT ("exchange_amount", &dc.exchange_amount), TALER_PQ_RESULT_SPEC_AMOUNT ("auditor_amount", &dc.auditor_amount), @@ -118,11 +121,13 @@ TAH_PG_get_reserve_balance_summary_wrong_inconsistency ( void *cb_cls) { + uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit); + struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&offset), GNUNET_PQ_query_param_bool (return_suppressed), - GNUNET_PQ_query_param_int64 (&limit), + GNUNET_PQ_query_param_uint64 (&plimit), GNUNET_PQ_query_param_end }; struct ReserveBalanceSummaryWrongInconsistencyContext dcc = { |