some changes for known coins

This commit is contained in:
Joseph 2023-03-03 06:20:38 -05:00
parent fb70814d46
commit d83c2539bc
No known key found for this signature in database
GPG Key ID: E709789D3076B5CC
3 changed files with 3 additions and 10 deletions

View File

@ -257,7 +257,6 @@ libtaler_plugin_exchangedb_postgres_la_SOURCES = \
pg_select_purse_deposits_above_serial_id.h pg_select_purse_deposits_above_serial_id.c \ 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_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_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 pg_select_reserve_open_above_serial_id.c pg_select_reserve_open_above_serial_id.h
libtaler_plugin_exchangedb_postgres_la_LIBADD = \ libtaler_plugin_exchangedb_postgres_la_LIBADD = \
$(LTLIBINTL) $(LTLIBINTL)

View File

@ -216,7 +216,7 @@
#include "pg_select_aml_process.h" #include "pg_select_aml_process.h"
#include "pg_select_aml_history.h" #include "pg_select_aml_history.h"
#include "pg_insert_aml_decision.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 * Set to 1 to enable Postgres auto_explain module. This will
@ -773,8 +773,7 @@ libtaler_plugin_exchangedb_postgres_init (void *cls)
= &TEH_PG_select_aml_history; = &TEH_PG_select_aml_history;
plugin->insert_aml_decision plugin->insert_aml_decision
= &TEH_PG_insert_aml_decision; = &TEH_PG_insert_aml_decision;
plugin->batch_ensure_coin_known
= &TEH_PG_batch_ensure_coin_known;
return plugin; return plugin;
} }

View File

@ -4026,12 +4026,7 @@ struct TALER_EXCHANGEDB_Plugin
uint64_t *known_coin_id, uint64_t *known_coin_id,
struct TALER_DenominationHashP *denom_pub_hash, struct TALER_DenominationHashP *denom_pub_hash,
struct TALER_AgeCommitmentHash *age_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. * Retrieve information about the given @a coin from the database.