summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-15 21:29:25 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-15 21:29:25 +0200
commitef7c20c42a6f594e53bedad7eada1439cfa1c1c2 (patch)
treef22a5a55c010d6ec1e6c5ec5c6e462e14130ab9e /src/include
parentbe7c123a24333edea206d8812d66f3c33702531a (diff)
downloadexchange-ef7c20c42a6f594e53bedad7eada1439cfa1c1c2.tar.gz
exchange-ef7c20c42a6f594e53bedad7eada1439cfa1c1c2.tar.bz2
exchange-ef7c20c42a6f594e53bedad7eada1439cfa1c1c2.zip
-more work on fakebank API extension
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_fakebank_lib.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/taler_fakebank_lib.h b/src/include/taler_fakebank_lib.h
index 16135a4d7..a4b182e58 100644
--- a/src/include/taler_fakebank_lib.h
+++ b/src/include/taler_fakebank_lib.h
@@ -76,6 +76,31 @@ TALER_FAKEBANK_start2 (uint16_t port,
/**
+ * Start the fake bank. The fake bank will, like the normal bank, listen for
+ * requests for /admin/add/incoming and /transfer. However, instead of
+ * executing or storing those requests, it will simply allow querying whether
+ * such a request has been made via #TALER_FAKEBANK_check_debit() and
+ * #TALER_FAKEBANK_check_credit() as well as the history API.
+ *
+ * This is useful for writing testcases to check whether the exchange
+ * would have issued the correct wire transfer orders.
+ *
+ * @param hostname hostname to use in URLs and URIs.
+ * @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
+ * @return NULL on error
+ */
+struct TALER_FAKEBANK_Handle *
+TALER_FAKEBANK_start3 (const char *hostname,
+ uint16_t port,
+ const char *currency,
+ uint64_t ram_limit,
+ unsigned int num_threads);
+
+
+/**
* Check that no wire transfers were ordered (or at least none
* that have not been taken care of via #TALER_FAKEBANK_check_debit()
* or #TALER_FAKEBANK_check_credit()).