commit c96c2f1ac4e024d42c9671562489d5325593789d
parent a9900856e4823925ad6ef22da946ab7965f17f62
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 23 Aug 2024 10:58:31 +0200
add missing file
Diffstat:
3 files changed, 47 insertions(+), 3 deletions(-)
diff --git a/src/auditor/taler-helper-auditor-wire-credit.c b/src/auditor/taler-helper-auditor-wire-credit.c
@@ -625,7 +625,8 @@ analyze_credit (
GNUNET_assert (TALER_BANK_CT_RESERVE ==
credit_details->type);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Analyzing bank CREDIT at %s of %s with Reserve-pub %s\n",
+ "Analyzing bank CREDIT #%llu at %s of %s with Reserve-pub %s\n",
+ (unsigned long long) credit_details->serial_id,
GNUNET_TIME_timestamp2s (credit_details->execution_date),
TALER_amount2s (&credit_details->amount),
TALER_B2S (&credit_details->details.reserve.reserve_pub));
@@ -637,7 +638,7 @@ analyze_credit (
if (NULL == rii)
{
// FIXME: probably should instead add to
- // auditor DB and report missing!
+ // auditor DB and report missing! (& continue!)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Failed to find wire transfer at `%s' in exchange database. Audit ends at this point in time.\n",
GNUNET_TIME_timestamp2s (credit_details->execution_date));
diff --git a/src/auditordb/Makefile.am b/src/auditordb/Makefile.am
@@ -59,7 +59,8 @@ endif
# MARK: CRUD
libtaler_plugin_auditordb_postgres_la_SOURCES = \
- plugin_auditordb_postgres.c pg_helper.h \
+ plugin_auditordb_postgres.c \
+ pg_helper.h pg_helper.c \
pg_delete_deposit_confirmations.c pg_delete_deposit_confirmations.h \
pg_delete_pending_deposit.c pg_delete_pending_deposit.h \
pg_delete_purse_info.c pg_delete_purse_info.h \
diff --git a/src/auditordb/pg_helper.c b/src/auditordb/pg_helper.c
@@ -0,0 +1,42 @@
+/*
+ This file is part of TALER
+ Copyright (C) 2015, 2016 Taler Systems SA
+
+ TALER is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+*/
+/**
+ * @file auditordb/auditordb_plugin.c
+ * @brief Logic to load database plugin
+ * @author Christian Grothoff
+ * @author Sree Harsha Totakura <sreeharsha@totakura.in>
+ */
+#include "platform.h"
+#include "taler_auditordb_plugin.h"
+#include <ltdl.h>
+
+
+const char *
+TAH_PG_get_table_name (enum TALER_AUDITORDB_SuppressableTables table)
+{
+ const char *tables[] = {
+ "auditor_amount_arithmetic_inconsistency",
+ NULL,
+ };
+
+ if ( (table < 0) ||
+ (table >= TALER_AUDITORDB_SUPPRESSABLE_TABLES_MAX))
+ {
+ GNUNET_break (0);
+ return NULL;
+ }
+ return tables[table];
+}