aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/perf_deposits_get_ready.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-23 21:18:32 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-23 21:18:32 +0200
commit5bf90c3505130bb92d518e8ae489d55095cb1cf3 (patch)
tree27bd1a47fd29043c4472e26505d213dbc103e284 /src/exchangedb/perf_deposits_get_ready.c
parente230eaad76f4488dc1b5dbc0aba6ab26b9423e75 (diff)
downloadexchange-5bf90c3505130bb92d518e8ae489d55095cb1cf3.tar.xz
kyc logic with birthdate setting test added
1. Added age-requirement check in withdraw-handler (like in batch-withdraw) 2. In test_exchange_api_age_restriction: - kyc-oauth2 started, with static birthdate in answers - withdraw triggers kyc - second withdraw fails due to age restriction requirements
Diffstat (limited to 'src/exchangedb/perf_deposits_get_ready.c')
-rw-r--r--src/exchangedb/perf_deposits_get_ready.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchangedb/perf_deposits_get_ready.c b/src/exchangedb/perf_deposits_get_ready.c
index 4ad08223c..89699da24 100644
--- a/src/exchangedb/perf_deposits_get_ready.c
+++ b/src/exchangedb/perf_deposits_get_ready.c
@@ -363,6 +363,8 @@ run (void *cls)
bool found;
bool nonce_ok;
bool balance_ok;
+ bool age_ok;
+ uint16_t allowed_minimum_age;
uint64_t ruuid;
struct GNUNET_TIME_Timestamp now;
@@ -372,9 +374,12 @@ run (void *cls)
NULL,
&cbc,
now,
+ false,
&found,
&balance_ok,
&nonce_ok,
+ &age_ok,
+ &allowed_minimum_age,
&ruuid));
}
{