summaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-06 22:51:55 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-06 22:51:55 +0100
commit40551fa08e45fcc71f3d260478a2f9910920f27d (patch)
tree1e9dc77a80328c77944fec1e7f8810b0b7afee28 /src/auditor
parent73a9fe56eb2fd9c7126eeffa396998815112e2e5 (diff)
downloadexchange-40551fa08e45fcc71f3d260478a2f9910920f27d.tar.gz
exchange-40551fa08e45fcc71f3d260478a2f9910920f27d.tar.bz2
exchange-40551fa08e45fcc71f3d260478a2f9910920f27d.zip
add -i option to taler-auditor
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-helper-auditor-aggregation.c9
-rw-r--r--src/auditor/taler-helper-auditor-coins.c9
-rw-r--r--src/auditor/taler-helper-auditor-deposits.c8
-rw-r--r--src/auditor/taler-helper-auditor-reserves.c8
-rw-r--r--src/auditor/taler-helper-auditor-wire.c8
5 files changed, 42 insertions, 0 deletions
diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c
index f3f65ffb..5a144ddf 100644
--- a/src/auditor/taler-helper-auditor-aggregation.c
+++ b/src/auditor/taler-helper-auditor-aggregation.c
@@ -116,6 +116,11 @@ static json_t *report_bad_sig_losses;
*/
static struct TALER_Amount total_bad_sig_loss;
+/**
+ * Should we run checks that only work for exchange-internal audits?
+ */
+static int internal_checks;
+
/**
* Report a (serious) inconsistency in the exchange's database with
@@ -1462,6 +1467,10 @@ main (int argc,
char *const *argv)
{
const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_flag ('i',
+ "internal",
+ "perform checks only applicable for exchange-internal audits",
+ &internal_checks),
GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key",
"KEY",
diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c
index a63426f7..bceb0419 100644
--- a/src/auditor/taler-helper-auditor-coins.c
+++ b/src/auditor/taler-helper-auditor-coins.c
@@ -193,6 +193,11 @@ struct CoinHistory
*/
static struct CoinHistory coin_histories[MAX_COIN_HISTORIES];
+/**
+ * Should we run checks that only work for exchange-internal audits?
+ */
+static int internal_checks;
+
/**
* Return the index we should use for @a coin_pub in #coin_histories.
@@ -2742,6 +2747,10 @@ main (int argc,
char *const *argv)
{
const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_flag ('i',
+ "internal",
+ "perform checks only applicable for exchange-internal audits",
+ &internal_checks),
GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key",
"KEY",
diff --git a/src/auditor/taler-helper-auditor-deposits.c b/src/auditor/taler-helper-auditor-deposits.c
index b9c4ff8d..1c012831 100644
--- a/src/auditor/taler-helper-auditor-deposits.c
+++ b/src/auditor/taler-helper-auditor-deposits.c
@@ -51,6 +51,10 @@ static json_int_t number_missed_deposit_confirmations;
*/
static struct TALER_Amount total_missed_deposit_confirmations;
+/**
+ * Should we run checks that only work for exchange-internal audits?
+ */
+static int internal_checks;
/**
* Closure for #test_dc.
@@ -343,6 +347,10 @@ main (int argc,
char *const *argv)
{
const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_flag ('i',
+ "internal",
+ "perform checks only applicable for exchange-internal audits",
+ &internal_checks),
GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key",
"KEY",
diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c
index 8f7921fa..8b49f747 100644
--- a/src/auditor/taler-helper-auditor-reserves.c
+++ b/src/auditor/taler-helper-auditor-reserves.c
@@ -142,6 +142,10 @@ static json_t *report_bad_sig_losses;
*/
static struct TALER_Amount total_bad_sig_loss;
+/**
+ * Should we run checks that only work for exchange-internal audits?
+ */
+static int internal_checks;
/* ***************************** Report logic **************************** */
@@ -1660,6 +1664,10 @@ main (int argc,
char *const *argv)
{
const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_flag ('i',
+ "internal",
+ "perform checks only applicable for exchange-internal audits",
+ &internal_checks),
GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key",
"KEY",
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index 1facd215..128eba81 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -314,6 +314,10 @@ static struct GNUNET_CURL_Context *ctx;
*/
static struct GNUNET_CURL_RescheduleContext *rc;
+/**
+ * Should we run checks that only work for exchange-internal audits?
+ */
+static int internal_checks;
/* ***************************** Shutdown **************************** */
@@ -2166,6 +2170,10 @@ main (int argc,
char *const *argv)
{
const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_option_flag ('i',
+ "internal",
+ "perform checks only applicable for exchange-internal audits",
+ &internal_checks),
GNUNET_GETOPT_option_base32_auto ('m',
"exchange-key",
"KEY",