[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: force (re)download of /keys also
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: force (re)download of /keys also for auditor check, see #6699 |
Date: |
Fri, 15 Jan 2021 12:39:18 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new dac3175e force (re)download of /keys also for auditor check, see #6699
new 4bbb29fb Merge branch 'master' of git+ssh://git.taler.net/merchant
dac3175e is described below
commit dac3175e350122d74c6600a89d6045f449705ab1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jan 15 12:39:10 2021 +0100
force (re)download of /keys also for auditor check, see #6699
---
src/backend/taler-merchant-httpd_auditors.c | 1 +
src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/src/backend/taler-merchant-httpd_auditors.c
b/src/backend/taler-merchant-httpd_auditors.c
index 179fa320..ce2e17e8 100644
--- a/src/backend/taler-merchant-httpd_auditors.c
+++ b/src/backend/taler-merchant-httpd_auditors.c
@@ -61,6 +61,7 @@ static unsigned int nauditors;
*/
json_t *j_auditors;
+
int
TMH_AUDITORS_check_dk (struct TALER_EXCHANGE_Handle *mh,
const struct TALER_EXCHANGE_DenomPublicKey *dk,
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index 7e7ac0b0..bc45902a 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -845,6 +845,19 @@ process_pay_with_exchange (void *cls,
&http_status,
&ec))
{
+ if (! pc->tried_force_keys)
+ {
+ /* let's try *forcing* a re-download of /keys from the exchange.
+ Maybe the wallet has seen auditors that we missed. */
+ pc->tried_force_keys = true;
+ pc->fo = TMH_EXCHANGES_find_exchange (pc->current_exchange,
+ pc->wm->wire_method,
+ GNUNET_YES,
+ &process_pay_with_exchange,
+ pc);
+ if (NULL != pc->fo)
+ return;
+ }
resume_pay_with_response (
pc,
http_status,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: force (re)download of /keys also for auditor check, see #6699,
gnunet <=