summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-06-19 08:36:17 +0200
committerChristian Grothoff <christian@grothoff.org>2021-06-19 08:36:17 +0200
commit50749c462b55b05d42ca518572f75101401089d5 (patch)
treec53fd7f066797ccf33c40f553e9526ddc2ecddd2 /src/include
parent036e7117798246b04fb5d8cbf274abf3b04ddbd3 (diff)
downloadexchange-50749c462b55b05d42ca518572f75101401089d5.tar.gz
exchange-50749c462b55b05d42ca518572f75101401089d5.tar.bz2
exchange-50749c462b55b05d42ca518572f75101401089d5.zip
make libfakebank scale
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_fakebank_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/taler_fakebank_lib.h b/src/include/taler_fakebank_lib.h
index 828282c8b..60283e7f4 100644
--- a/src/include/taler_fakebank_lib.h
+++ b/src/include/taler_fakebank_lib.h
@@ -64,6 +64,7 @@ TALER_FAKEBANK_start (uint16_t port,
*
* @param port port to listen to
* @param currency which currency should the bank offer
+ * @param ram_limit how much memory do we use at most
* @param num_threads size of the thread pool, 0 to use the GNUnet scheduler
* @param close_connections true to force closing a connection after each request (no HTTP keep-alive)
* @return NULL on error
@@ -71,6 +72,7 @@ TALER_FAKEBANK_start (uint16_t port,
struct TALER_FAKEBANK_Handle *
TALER_FAKEBANK_start2 (uint16_t port,
const char *currency,
+ uint64_t ram_limit,
unsigned int num_threads,
bool close_connections);
@@ -81,6 +83,9 @@ TALER_FAKEBANK_start2 (uint16_t port,
* or #TALER_FAKEBANK_check_credit()).
* If any transactions are onrecord, return #GNUNET_SYSERR.
*
+ * Note that this function only works in
+ * single-threaded mode while nothing else is happening.
+ *
* @param h bank instance
* @return #GNUNET_OK on success
*/
@@ -139,6 +144,9 @@ TALER_FAKEBANK_make_admin_transfer (
* to the transfer identifier and remove the transaction from the
* list. If the transaction was not recorded, return #GNUNET_SYSERR.
*
+ * Note that this function only works in
+ * single-threaded mode while nothing else is happening.
+ *
* @param h bank instance
* @param want_amount transfer amount desired
* @param want_debit account that should have been debited
@@ -162,6 +170,9 @@ TALER_FAKEBANK_check_debit (struct TALER_FAKEBANK_Handle *h,
* @a want_credit account with the @a subject. If so, remove the transaction
* from the list. If the transaction was not recorded, return #GNUNET_SYSERR.
*
+ * Note that this function only works in
+ * single-threaded mode while nothing else is happening.
+ *
* @param h bank instance
* @param want_amount transfer amount desired
* @param want_debit account that should have been debited