gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 01/04: check total loss initially


From: gnunet
Subject: [taler-exchange] 01/04: check total loss initially
Date: Sat, 07 Dec 2019 17:20:12 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

commit b164e090dc85bf60103dcd254242979096590def
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Dec 7 14:27:55 2019 +0100

    check total loss initially
---
 contrib/auditor-report.tex.j2 | 2 +-
 src/auditor/test-auditor.sh   | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2
index 2c2f1636..6985bfcd 100644
--- a/contrib/auditor-report.tex.j2
+++ b/contrib/auditor-report.tex.j2
@@ -631,7 +631,7 @@ public key for ``payback-master'' operations.
   \label{table:bad_signature_losses}
 \endlastfoot
 {% for item in data.bad_sig_losses %}
-  \multicolumn{3}{l}{ {\tt \small {{ item.key_pub }} } } \\
+  \multicolumn{3}{l}{ {\tt \small \truncate{0.9\textwidth}{ {{ item.key_pub }} 
} } } \\
 \nopagebreak
   {{ item.operation }} &
   {{ item.row }} &
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 7100c5a4..b5f63cc2 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -157,6 +157,12 @@ jq -e .wire_format_inconsistencies[0] < 
test-wire-audit.json > /dev/null && exit
 
 echo PASS
 
+LOSS=`jq -r .total_bad_sig_loss < test-audit.json`
+if test $LOSS != "TESTKUDOS:0.0"
+then
+    exit_fail "Wrong total bad sig loss, got unexpected loss of $LOSS"
+fi
+
 echo -n "Test for wire amounts... "
 WIRED=`jq -r .total_wire_in_delta_plus < test-wire-audit.json`
 if test $WIRED != "TESTKUDOS:0"

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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