From be536de23c4a6a7f33e05d1f9f658579a470821a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 26 Apr 2022 23:10:05 +0200 Subject: various age restriction fixes, some of them half-baked --- src/util/age_restriction.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util/age_restriction.c') diff --git a/src/util/age_restriction.c b/src/util/age_restriction.c index 45ebc03c..e69e7412 100644 --- a/src/util/age_restriction.c +++ b/src/util/age_restriction.c @@ -38,6 +38,13 @@ TALER_age_commitment_hash ( return; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "popcount - 1: %d\n", + __builtin_popcount (commitment->mask.bits) - 1); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "commitment num: %d\n", + commitment->num); + GNUNET_assert (__builtin_popcount (commitment->mask.bits) - 1 == commitment->num); -- cgit v1.2.3