summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-13 23:12:21 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-13 23:12:21 +0200
commit1d088120a5c378ec5fe2d9cfd86353f9b75220c4 (patch)
tree208dc57cb9758af7ccdc1dbf82fba9e69337d826 /src/exchangedb/test_exchangedb.c
parent5b78951826e1f6984281f50cb43a6cf2c3f2e33c (diff)
downloadexchange-1d088120a5c378ec5fe2d9cfd86353f9b75220c4.tar.gz
exchange-1d088120a5c378ec5fe2d9cfd86353f9b75220c4.tar.bz2
exchange-1d088120a5c378ec5fe2d9cfd86353f9b75220c4.zip
work on KYC support in auditor (WiP, not finished)
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r--src/exchangedb/test_exchangedb.c44
1 files changed, 18 insertions, 26 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 6e1d3a006..081126637 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -1117,44 +1117,36 @@ drop:
* and have not yet seen a wire transfer.
*
* @param cls closure a `struct TALER_EXCHANGEDB_Deposit *`
- * @param rowid deposit table row of the coin's deposit
- * @param coin_pub public key of the coin
- * @param amount value of the deposit, including fee
- * @param payto_uri where should the funds be wired
- * @param deadline what was the requested wire transfer deadline
- * @param done did the exchange claim that it made a transfer?
+ * @param total_amount value of all missing deposits, including fees
+ * @param payto_uri where should the funds be wired; URI in payto://-format
+ * @param deadline what was the earliest requested wire transfer deadline
+ * @param kyc_pending NULL if no KYC requirement is pending, otherwise text describing the missing KYC requirement
+ * @param aml_status status of AML possibly blocking the transfer
+ * @param aml_limit current monthly AML limit
*/
static void
-wire_missing_cb (void *cls,
- uint64_t rowid,
- const struct TALER_CoinSpendPublicKeyP *coin_pub,
- const struct TALER_Amount *amount,
- const char *payto_uri,
- struct GNUNET_TIME_Timestamp deadline,
- bool done)
+wire_missing_cb (
+ void *cls,
+ const struct TALER_Amount *total_amount,
+ const char *payto_uri,
+ struct GNUNET_TIME_Timestamp deadline,
+ const char *kyc_pending,
+ enum TALER_AmlDecisionState status,
+ const struct TALER_Amount *aml_limit)
{
const struct TALER_EXCHANGEDB_CoinDepositInformation *deposit = cls;
(void) payto_uri;
(void) deadline;
- (void) rowid;
- if (done)
- {
- GNUNET_break (0);
- result = 66;
- }
- if (0 != TALER_amount_cmp (amount,
+ (void) kyc_pending;
+ (void) status;
+ (void) aml_limit;
+ if (0 != TALER_amount_cmp (total_amount,
&deposit->amount_with_fee))
{
GNUNET_break (0);
result = 66;
}
- if (0 != GNUNET_memcmp (coin_pub,
- &deposit->coin.coin_pub))
- {
- GNUNET_break (0);
- result = 66;
- }
}