summaryrefslogtreecommitdiff
path: root/src/util/age_restriction.c
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-04-26 23:10:05 +0200
committerFlorian Dold <florian@dold.me>2022-04-26 23:10:12 +0200
commitbe536de23c4a6a7f33e05d1f9f658579a470821a (patch)
treeb4b85b14276b4a51b9cf5c19bad8245d6f21d311 /src/util/age_restriction.c
parent336f2d8991fe4b77b625415c179f68b387a2719b (diff)
downloadexchange-be536de23c4a6a7f33e05d1f9f658579a470821a.tar.gz
exchange-be536de23c4a6a7f33e05d1f9f658579a470821a.tar.bz2
exchange-be536de23c4a6a7f33e05d1f9f658579a470821a.zip
various age restriction fixes, some of them half-baked
Diffstat (limited to 'src/util/age_restriction.c')
-rw-r--r--src/util/age_restriction.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/age_restriction.c b/src/util/age_restriction.c
index 45ebc03c4..e69e74126 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);