[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 02/02: add missing file
From: |
gnunet |
Subject: |
[taler-exchange] 02/02: add missing file |
Date: |
Fri, 23 Aug 2024 10:58:38 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit c96c2f1ac4e024d42c9671562489d5325593789d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Aug 23 10:58:31 2024 +0200
add missing file
---
src/auditor/taler-helper-auditor-wire-credit.c | 5 +--
src/auditordb/Makefile.am | 3 +-
src/auditordb/pg_helper.c | 42 ++++++++++++++++++++++++++
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
index d918eee77..0ccb68a3f 100644
--- 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
index 36c6917a8..d4bb7f171 100644
--- 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
new file mode 100644
index 000000000..f022d8e57
--- /dev/null
+++ 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];
+}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.