diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-13 22:04:37 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-13 22:04:37 +0200 |
commit | e3e3b0637264b6cbccf9c69b4546429187faa8e7 (patch) | |
tree | d588fe4ba00b39efd35ad435b64ca002369c90b4 /src/stasis | |
parent | 1398cca51c44709cd990fc7ed7b854b802004a97 (diff) | |
download | anastasis-e3e3b0637264b6cbccf9c69b4546429187faa8e7.tar.gz anastasis-e3e3b0637264b6cbccf9c69b4546429187faa8e7.tar.bz2 anastasis-e3e3b0637264b6cbccf9c69b4546429187faa8e7.zip |
-get IBAN test to pass again
Diffstat (limited to 'src/stasis')
-rw-r--r-- | src/stasis/plugin_anastasis_postgres.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/stasis/plugin_anastasis_postgres.c b/src/stasis/plugin_anastasis_postgres.c index 709228f..3b1136d 100644 --- a/src/stasis/plugin_anastasis_postgres.c +++ b/src/stasis/plugin_anastasis_postgres.c @@ -2459,6 +2459,10 @@ check_valid_code (void *cls, cvc->db_failure = true; return; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Found issued challenge %llu (client: %s)\n", + (unsigned long long) server_code, + GNUNET_h2s (cvc->hashed_code)); { struct GNUNET_HashCode shashed_code; @@ -2468,6 +2472,9 @@ check_valid_code (void *cls, GNUNET_memcmp (&shashed_code, cvc->hashed_code)) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Challenge is valid challenge (%s)\n", + (0 != sat) ? "satisfied" : "not satisfied"); cvc->valid = true; cvc->code = server_code; cvc->satisfied = (0 != sat); @@ -2769,13 +2776,14 @@ postgres_create_challenge_code ( rollback (pg); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Active challenge %llu has zero tries left, refusing to create another one\n", - (unsigned long long) code); + (unsigned long long) *code); return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; } rollback (pg); GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Active challenge has %u tries left, returning old challenge\n", - (unsigned int) old_retry_counter); + "Active challenge has %u tries left, returning old challenge %llu\n", + (unsigned int) old_retry_counter, + (unsigned long long) *code); return qs; } } @@ -2862,6 +2870,9 @@ postgres_mark_challenge_sent ( if (qs <= 0) return qs; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Marking challenge %llu as issued\n", + (unsigned long long) code); { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (truth_uuid), |