[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: hide completed challenges
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: hide completed challenges |
Date: |
Mon, 15 Mar 2021 21:20:23 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis-gtk.
The following commit(s) were added to refs/heads/master by this push:
new a223225 hide completed challenges
a223225 is described below
commit a2232258ec3b667f2171984ff60b2d03f0e8d0c9
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Mon Mar 15 21:20:20 2021 +0100
hide completed challenges
---
src/anastasis/anastasis-gtk_action.c | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c
b/src/anastasis/anastasis-gtk_action.c
index 1083cbb..5ea33db 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -1308,7 +1308,7 @@ action_challenge_selecting (void)
const char *type;
const char *provider;
const char *instructions;
- struct GNUNET_JSON_Specification pspec[] = {
+ struct GNUNET_JSON_Specification cspec[] = {
GNUNET_JSON_spec_string ("type",
&type),
GNUNET_JSON_spec_string ("url",
@@ -1319,7 +1319,6 @@ action_challenge_selecting (void)
};
struct TALER_Amount recovery_cost;
- // FIXME: omit solved challenges!
GNUNET_assert (NULL != uuid);
cs = find_challenge_by_uuid (uuid);
if (NULL == cs)
@@ -1328,9 +1327,18 @@ action_challenge_selecting (void)
AG_error ("Policy did not parse correctly");
return;
}
+ {
+ const json_t *ks;
+
+ ks = json_object_get (cs,
+ "key_share");
+ if ( (NULL != ks) &&
+ (! json_is_null (ks)) )
+ continue; /* already solved */
+ }
if (GNUNET_OK !=
GNUNET_JSON_parse (cs,
- pspec,
+ cspec,
NULL, NULL))
{
GNUNET_break_op (0);
@@ -1414,6 +1422,15 @@ action_challenge_selecting (void)
GNUNET_JSON_spec_end ()
};
+ {
+ const json_t *ks;
+
+ ks = json_object_get (challenge,
+ "key_share");
+ if ( (NULL != ks) &&
+ (! json_is_null (ks)) )
+ continue; /* already solved */
+ }
if (GNUNET_OK !=
GNUNET_JSON_parse (challenge,
spec,
@@ -1422,13 +1439,9 @@ action_challenge_selecting (void)
GNUNET_break (0);
continue;
}
- // FIXME: omit solved challenges!
lookup_recovery_cost (provider,
type,
&cost);
- fprintf (stderr,
- "Making button for %s\n",
- instructions);
{
char *ins_str;
@@ -1758,10 +1771,6 @@ AG_action_cb (void *cls,
json_decref (redux_state);
redux_state = json_incref (response);
}
- fprintf (stderr,
- "DISPATCH %s\n",
- json_string_value (json_object_get (redux_state,
- "recovery_state")));
if (GNUNET_OK ==
AG_dispatch (actions))
return;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis-gtk] branch master updated: hide completed challenges,
gnunet <=