summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-07 14:27:55 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-07 14:27:55 +0100
commitb164e090dc85bf60103dcd254242979096590def (patch)
treed7922f4c8f8f83a4d8d94423aa7e9b31922c0f7f
parente153215f7e0f0103a2000ca978e6c4fd2719feb2 (diff)
downloadexchange-b164e090dc85bf60103dcd254242979096590def.tar.gz
exchange-b164e090dc85bf60103dcd254242979096590def.tar.bz2
exchange-b164e090dc85bf60103dcd254242979096590def.zip
check total loss initially
-rw-r--r--contrib/auditor-report.tex.j22
-rwxr-xr-xsrc/auditor/test-auditor.sh6
2 files changed, 7 insertions, 1 deletions
diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2
index 2c2f16364..6985bfcd7 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 7100c5a4a..b5f63cc2d 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"