gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -fix test-auditor.sh


From: gnunet
Subject: [taler-exchange] branch master updated: -fix test-auditor.sh
Date: Sun, 07 Aug 2022 13:01:03 +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 c676737f -fix test-auditor.sh
c676737f is described below

commit c676737f5f6a707ea8bb5b75f776eb619dab110d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 7 13:01:00 2022 +0200

    -fix test-auditor.sh
---
 src/auditor/taler-helper-auditor-coins.c | 4 +++-
 src/auditor/test-auditor.sh              | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-coins.c 
b/src/auditor/taler-helper-auditor-coins.c
index 61cd8468..a3c8afb5 100644
--- a/src/auditor/taler-helper-auditor-coins.c
+++ b/src/auditor/taler-helper-auditor-coins.c
@@ -1340,6 +1340,7 @@ refresh_session_cb (void *cls,
                                   coin_pub,
                                   coin_sig))
     {
+      GNUNET_break_op (0);
       TALER_ARL_report (report_bad_sig_losses,
                         GNUNET_JSON_PACK (
                           GNUNET_JSON_pack_string ("operation",
@@ -1451,11 +1452,12 @@ refresh_session_cb (void *cls,
                                             &amount_without_fee));
     }
 
-    /* check old coin covers complete expenses (of withdraw operations) */
+    /* check old coin covers complete expenses (of refresh operation) */
     if (1 == TALER_amount_cmp (&refresh_cost,
                                &amount_without_fee))
     {
       /* refresh_cost > amount_without_fee, which is bad (exchange lost) */
+      GNUNET_break_op (0);
       report_amount_arithmetic_inconsistency ("melt (cost)",
                                               rowid,
                                               &amount_without_fee, /* 
'exchange' */
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 80495e2b..8273d16e 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -1776,7 +1776,7 @@ fi
 jq -e .emergencies[0] < test-audit-coins.json > /dev/null && exit_fail 
"Unexpected emergency detected in ordinary run"
 echo "OK"
 # Undo
-echo "UPDATE exchange.denominations SET fee_refresh_frac=3000000 WHERE 
coin_val=1;" | psql -Aqt $DB
+echo "UPDATE exchange.denominations SET fee_refresh_frac=3000000 WHERE 
coin_val=10;" | psql -Aqt $DB
 
 }
 

-- 
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]