[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: add FORCE_AUDIT option
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: add FORCE_AUDIT option |
Date: |
Sat, 26 Oct 2019 20:55:47 +0200 |
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 d78f07e add FORCE_AUDIT option
d78f07e is described below
commit d78f07e8af8cf1fc83a0085269ddcda11f302bc5
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Oct 26 20:55:43 2019 +0200
add FORCE_AUDIT option
---
src/backend/taler-merchant-httpd.c | 11 ++++++++++-
src/backend/taler-merchant-httpd.h | 5 +++++
src/backend/taler-merchant-httpd_pay.c | 6 ++++--
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c
b/src/backend/taler-merchant-httpd.c
index bc784cd..9184055 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -119,6 +119,11 @@ int TMH_merchant_connection_close;
*/
char *TMH_currency;
+/**
+ * Inform the auditor for all deposit confirmations (global option)
+ */
+int TMH_force_audit;
+
/**
* Task running the HTTP server.
*/
@@ -1343,7 +1348,11 @@ run (void *cls,
GNUNET_SCHEDULER_shutdown ();
return;
}
-
+ if (GNUNET_YES ==
+ GNUNET_CONFIGURATION_get_value_yesno (config,
+ "merchant",
+ "FORCE_AUDIT"))
+ TMH_force_audit = GNUNET_YES;
if (GNUNET_SYSERR ==
TMH_EXCHANGES_init (config))
{
diff --git a/src/backend/taler-merchant-httpd.h
b/src/backend/taler-merchant-httpd.h
index c7046d8..0deaf17 100644
--- a/src/backend/taler-merchant-httpd.h
+++ b/src/backend/taler-merchant-httpd.h
@@ -295,6 +295,11 @@ extern unsigned long long default_wire_fee_amortization;
*/
extern char *TMH_currency;
+/**
+ * Inform the auditor for all deposit confirmations (global option)
+ */
+extern int TMH_force_audit;
+
/**
* Hash of our wire format details as given in #j_wire.
*/
diff --git a/src/backend/taler-merchant-httpd_pay.c
b/src/backend/taler-merchant-httpd_pay.c
index 569b71d..7b2e3fb 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -1203,7 +1203,8 @@ process_pay_with_exchange (void *cls,
"coin_idx", i));
return;
}
-
+ if (TMH_force_audit)
+ TALER_EXCHANGE_deposit_force_dc (dc->dh);
pc->pending_at_ce++;
}
}
@@ -1409,7 +1410,8 @@ parse_pay (struct MHD_Connection *connection,
if (0 != GNUNET_memcmp (&merchant_pub,
&pc->mi->pubkey))
{
- TALER_LOG_INFO ("Unknown merchant public key included in payment (usually
wrong instance chosen)\n");
+ TALER_LOG_INFO (
+ "Unknown merchant public key included in payment (usually wrong instance
chosen)\n");
TMH_RESPONSE_reply_rc (connection,
MHD_HTTP_NOT_FOUND,
TALER_EC_PAY_WRONG_INSTANCE,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: add FORCE_AUDIT option,
gnunet <=