p2p payments: do not require attestation when min_age is 0

This commit is contained in:
Florian Dold 2022-09-05 13:48:34 +02:00
parent 0c0c598612
commit 57a53a016b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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)
{