summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-05 13:48:34 +0200
committerFlorian Dold <florian@dold.me>2022-09-05 13:48:34 +0200
commit57a53a016ba50fdada1f6441ce8fc222abfb607f (patch)
tree5cde28f56ffa1b41516f441f3a349bb34bc2a237
parent0c0c5986129a472ba18a958ba59be227affde9ef (diff)
downloadexchange-57a53a016ba50fdada1f6441ce8fc222abfb607f.tar.gz
exchange-57a53a016ba50fdada1f6441ce8fc222abfb607f.tar.bz2
exchange-57a53a016ba50fdada1f6441ce8fc222abfb607f.zip
p2p payments: do not require attestation when min_age is 0
-rw-r--r--src/exchange/taler-exchange-httpd_common_deposit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_common_deposit.c b/src/exchange/taler-exchange-httpd_common_deposit.c
index 3420f9cac..ecb13630c 100644
--- a/src/exchange/taler-exchange-httpd_common_deposit.c
+++ b/src/exchange/taler-exchange-httpd_common_deposit.c
@@ -220,6 +220,9 @@ TEH_common_deposit_check_purse_deposit (
: GNUNET_SYSERR;
}
+ if (0 == min_age)
+ return GNUNET_OK; /* no need to apply age checks */
+
/* Check and verify the age restriction. */
if (coin->no_attest != coin->cpi.no_age_commitment)
{