[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: do not transition to error if o
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: do not transition to error if one challenge failed |
Date: |
Wed, 31 Mar 2021 15:51:40 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 7d6dbe8 do not transition to error if one challenge failed
7d6dbe8 is described below
commit 7d6dbe85343d0d9f282243dd640f3979be786fe8
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Mar 31 15:51:38 2021 +0200
do not transition to error if one challenge failed
---
src/reducer/anastasis_api_recovery_redux.c | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/reducer/anastasis_api_recovery_redux.c
b/src/reducer/anastasis_api_recovery_redux.c
index 50d900d..6d13707 100644
--- a/src/reducer/anastasis_api_recovery_redux.c
+++ b/src/reducer/anastasis_api_recovery_redux.c
@@ -553,9 +553,9 @@ answer_feedback_cb (
}
GNUNET_break_op (0);
set_state (sctx->state,
- ANASTASIS_GENERIC_STATE_ERROR);
+ ANASTASIS_RECOVERY_STATE_CHALLENGE_SELECTING);
sctx->cb (sctx->cb_cls,
- csr->details.server_failure.ec,
+ TALER_EC_NONE,
sctx->state);
sctx_free (sctx);
return;
@@ -563,9 +563,11 @@ answer_feedback_cb (
{
json_t *err;
- err = json_pack ("{s:s}",
+ err = json_pack ("{s:s, s:I}",
"state",
- "truth-unknown");
+ "truth-unknown",
+ "error_code",
+ (json_int_t) TALER_EC_ANASTASIS_TRUTH_UNKNOWN);
GNUNET_assert (NULL != err);
GNUNET_assert (0 ==
json_object_set_new (feedback,
@@ -573,9 +575,9 @@ answer_feedback_cb (
err));
}
set_state (sctx->state,
- ANASTASIS_GENERIC_STATE_ERROR);
+ ANASTASIS_RECOVERY_STATE_CHALLENGE_SELECTING);
sctx->cb (sctx->cb_cls,
- TALER_EC_ANASTASIS_TRUTH_UNKNOWN,
+ TALER_EC_NONE,
sctx->state);
sctx_free (sctx);
return;
@@ -583,9 +585,12 @@ answer_feedback_cb (
{
json_t *err;
- err = json_pack ("{s:s}",
+ err = json_pack ("{s:s, s:I}",
"state",
- "rate-limit-exceeded");
+ "rate-limit-exceeded",
+ "error_code",
+ (json_int_t) TALER_EC_ANASTASIS_TRUTH_RATE_LIMITED);
+
GNUNET_assert (NULL != err);
GNUNET_assert (0 ==
json_object_set_new (feedback,
@@ -594,9 +599,9 @@ answer_feedback_cb (
}
GNUNET_break_op (0);
set_state (sctx->state,
- ANASTASIS_GENERIC_STATE_ERROR);
+ ANASTASIS_RECOVERY_STATE_CHALLENGE_SELECTING);
sctx->cb (sctx->cb_cls,
- TALER_EC_ANASTASIS_TRUTH_RATE_LIMITED,
+ TALER_EC_NONE,
sctx->state);
sctx_free (sctx);
return;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: do not transition to error if one challenge failed,
gnunet <=