summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJoseph <Joseph.xu@efrei.net>2022-11-16 11:44:48 -0500
committerJoseph <Joseph.xu@efrei.net>2022-11-21 10:40:08 -0500
commitf60e38077c7e2ddd2ac6ae3e35c4b27f3225512a (patch)
treec867e47b3edefb8324f58157bbf0e12678cc17df /src/include
parent9d43bf92c45e771afdada11851393e0a82a91078 (diff)
downloadexchange-f60e38077c7e2ddd2ac6ae3e35c4b27f3225512a.tar.gz
exchange-f60e38077c7e2ddd2ac6ae3e35c4b27f3225512a.tar.bz2
exchange-f60e38077c7e2ddd2ac6ae3e35c4b27f3225512a.zip
some modifications on batch_test for reserves_in
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index f21301e7e..6f5dedd05 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2571,6 +2571,17 @@ struct TALER_EXCHANGEDB_KycStatus
};
+struct TALER_EXCHANGEDB_ReserveInInfo
+{
+ struct TALER_ReservePublicKeyP reserve_pub;
+ struct TALER_Amount balance;
+ struct GNUNET_TIME_Timestamp execution_time;
+ const char *sender_account_details;
+ const char *exchange_account_name;
+ uint64_t wire_reference;
+};
+
+
/**
* Function called on each @a amount that was found to
* be relevant for a KYC check.
@@ -3458,6 +3469,23 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * Insert a batch of incoming transaction into reserves. New reserves are
+ * also created through this function.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param reserves
+ * @param reserves_length length of the @a reserves array
+ * @param[out] results array of transaction status codes of length @a reserves_length,
+ * set to the status of the
+ */
+ enum GNUNET_DB_QueryStatus
+ (*batch_reserves_in_insert)(void *cls,
+ const struct TALER_EXCHANGEDB_ReserveInInfo *reserves,
+ unsigned int reserves_length,
+ enum GNUNET_DB_QueryStatus *results);
+
+
+ /**
* Locate a nonce for use with a particular public key.
*
* @param cls the @e cls of this struct with the plugin-specific state