[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 04/07: some changes for ensure known coin
From: |
gnunet |
Subject: |
[taler-exchange] 04/07: some changes for ensure known coin |
Date: |
Mon, 27 Mar 2023 15:55:10 +0200 |
This is an automated email from the git hooks/post-receive script.
joseph-xu pushed a commit to branch master
in repository exchange.
commit fb70814d46d5b92da45e2caa8c513263de7467b2
Author: Joseph <Joseph.xu@efrei.net>
AuthorDate: Mon Feb 20 08:04:06 2023 -0500
some changes for ensure known coin
---
src/exchangedb/Makefile.am | 1 +
src/exchangedb/plugin_exchangedb_postgres.c | 4 +++-
src/exchangedb/procedures.sql.in | 1 +
src/include/taler_exchangedb_plugin.h | 7 ++++++-
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/exchangedb/Makefile.am b/src/exchangedb/Makefile.am
index 9757aeff..f07069f4 100644
--- a/src/exchangedb/Makefile.am
+++ b/src/exchangedb/Makefile.am
@@ -257,6 +257,7 @@ libtaler_plugin_exchangedb_postgres_la_SOURCES = \
pg_select_purse_deposits_above_serial_id.h
pg_select_purse_deposits_above_serial_id.c \
pg_select_account_merges_above_serial_id.h
pg_select_account_merges_above_serial_id.c \
pg_select_all_purse_decisions_above_serial_id.h
pg_select_all_purse_decisions_above_serial_id.c \
+ pg_batch_ensure_coin_known.h pg_batch_ensure_coin_known.c \
pg_select_reserve_open_above_serial_id.c
pg_select_reserve_open_above_serial_id.h
libtaler_plugin_exchangedb_postgres_la_LIBADD = \
$(LTLIBINTL)
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c
b/src/exchangedb/plugin_exchangedb_postgres.c
index 2ef25077..e6799518 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -216,7 +216,7 @@
#include "pg_select_aml_process.h"
#include "pg_select_aml_history.h"
#include "pg_insert_aml_decision.h"
-
+#include "pg_batch_ensure_coin_known.h"
/**
* Set to 1 to enable Postgres auto_explain module. This will
@@ -773,6 +773,8 @@ libtaler_plugin_exchangedb_postgres_init (void *cls)
= &TEH_PG_select_aml_history;
plugin->insert_aml_decision
= &TEH_PG_insert_aml_decision;
+ plugin->batch_ensure_coin_known
+ = &TEH_PG_batch_ensure_coin_known;
return plugin;
}
diff --git a/src/exchangedb/procedures.sql.in b/src/exchangedb/procedures.sql.in
index 27a5b3bb..12ec3656 100644
--- a/src/exchangedb/procedures.sql.in
+++ b/src/exchangedb/procedures.sql.in
@@ -44,5 +44,6 @@ SET search_path TO exchange;
#include "exchange_do_refund_by_coin.sql"
#include "exchange_do_get_ready_deposit.sql"
#include "exchange_do_get_link_data.sql"
+#include "exchange_do_batch_coin_known.sql"
COMMIT;
diff --git a/src/include/taler_exchangedb_plugin.h
b/src/include/taler_exchangedb_plugin.h
index 962bccaa..02d7896a 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -4026,7 +4026,12 @@ struct TALER_EXCHANGEDB_Plugin
uint64_t *known_coin_id,
struct TALER_DenominationHashP *denom_pub_hash,
struct TALER_AgeCommitmentHash *age_hash);
-
+ enum TALER_EXCHANGEDB_CoinKnownStatus
+ (*batch_ensure_coin_known)(void *cls,
+ const struct TALER_CoinPublicInfo *coin,
+ const struct TALER_CoinInfo *result,
+ unsigned int coin_length,
+ unsigned int batch_size);
/**
* Retrieve information about the given @a coin from the database.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] branch master updated (f87eda14 -> 6af9fd66), gnunet, 2023/03/27
- [taler-exchange] 03/07: nothing to update, gnunet, 2023/03/27
- [taler-exchange] 01/07: New spi files, gnunet, 2023/03/27
- [taler-exchange] 05/07: some changes for known coins, gnunet, 2023/03/27
- [taler-exchange] 07/07: New spi files, gnunet, 2023/03/27
- [taler-exchange] 04/07: some changes for ensure known coin,
gnunet <=
- [taler-exchange] 02/07: Spi files, gnunet, 2023/03/27
- [taler-exchange] 06/07: New spi files, gnunet, 2023/03/27