gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: only exit on bank error from wir


From: gnunet
Subject: [taler-exchange] branch master updated: only exit on bank error from wirewatch if new '-e' option is given
Date: Sat, 11 Jun 2022 23:47:28 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new e71782ea only exit on bank error from wirewatch if new '-e' option is 
given
e71782ea is described below

commit e71782ea777efce86342def929ed55330762a16d
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Jun 11 23:46:25 2022 +0200

    only exit on bank error from wirewatch if new '-e' option is given
---
 src/exchange/taler-exchange-wirewatch.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/exchange/taler-exchange-wirewatch.c 
b/src/exchange/taler-exchange-wirewatch.c
index c39abe13..2ba7e7ad 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -200,6 +200,10 @@ static unsigned int shard_size = MAXIMUM_BATCH_SIZE;
  */
 static unsigned int max_workers = 16;
 
+/**
+ * -e command-line option: exit on errors talking to the bank?
+ */
+static int exit_on_error;
 
 /**
  * Value to return from main(). 0 on success, non-zero on
@@ -639,6 +643,11 @@ history_cb (void *cls,
                   "Error fetching history: %s (%u)\n",
                   TALER_ErrorCode_get_hint (ec),
                   http_status);
+      if (! exit_on_error)
+      {
+        account_completed (wa);
+        return GNUNET_OK;
+      }
       GNUNET_SCHEDULER_shutdown ();
       return GNUNET_OK;
     }
@@ -974,6 +983,10 @@ main (int argc,
       char *const *argv)
 {
   struct GNUNET_GETOPT_CommandLineOption options[] = {
+    GNUNET_GETOPT_option_flag ('e',
+                               "exit-on-error",
+                               "terminate wirewatch if we failed to download 
information from the bank",
+                               &exit_on_error),
     GNUNET_GETOPT_option_flag ('I',
                                "ignore-not-found",
                                "continue, even if the bank account of the 
exchange was not found",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]