commit a30bbfb9a22bb12df7cc98735a3e4cac894d27f7
parent 32ca6ca26e690fa731824d596822f2ce77d67470
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 28 Jun 2024 08:38:01 +0200
-fix auditordb test
Diffstat:
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/auditordb/Makefile.am b/src/auditordb/Makefile.am
@@ -160,6 +160,7 @@ pg_insert_purses.c pg_insert_purses.h \
pg_update_purses.c pg_update_purses.h \
pg_get_historic_denomination_revenue.c pg_get_historic_denomination_revenue.h \
pg_del_historic_denomination_revenue.c pg_del_historic_denomination_revenue.h \
+pg_insert_historic_denom_revenue.c pg_insert_historic_denom_revenue.h \
pg_insert_historic_denomination_revenue.c pg_insert_historic_denomination_revenue.h \
pg_update_historic_denomination_revenue.c pg_update_historic_denomination_revenue.h \
pg_get_denomination_pending.c pg_get_denomination_pending.h \
diff --git a/src/auditordb/pg_insert_historic_denom_revenue.h b/src/auditordb/pg_insert_historic_denom_revenue.h
@@ -18,7 +18,6 @@
* @brief implementation of the insert_historic_denom_revenue function
* @author Christian Grothoff
*/
-/*
#ifndef PG_INSERT_HISTORIC_DENOM_REVENUE_H
#define PG_INSERT_HISTORIC_DENOM_REVENUE_H
@@ -26,7 +25,7 @@
#include "taler_json_lib.h"
#include "taler_auditordb_plugin.h"
-*/
+
/**
* Insert information about an exchange's historic
* revenue about a denomination key.
@@ -40,7 +39,6 @@
* @param loss_balance total losses suffered by the exchange at the time
* @return transaction status code
*/
-/*
enum GNUNET_DB_QueryStatus
TAH_PG_insert_historic_denom_revenue (
void *cls,
@@ -50,4 +48,3 @@ TAH_PG_insert_historic_denom_revenue (
const struct TALER_Amount *loss_balance);
#endif
-*/
-\ No newline at end of file
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
@@ -687,10 +687,10 @@ libtaler_plugin_auditordb_postgres_init (void *cls)
= &TAH_PG_del_denomination_balance;
plugin->get_denomination_balance
= &TAH_PG_get_denomination_balance;
-/*
+
plugin->insert_historic_denom_revenue
= &TAH_PG_insert_historic_denom_revenue;
- */
+
plugin->select_historic_denom_revenue
= &TAH_PG_select_historic_denom_revenue;