summaryrefslogtreecommitdiff
path: root/contrib/auditor-report.tex.j2
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-30 22:11:24 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-30 22:11:24 +0200
commit11b643dd83fa3e75d5aa3b4918c55065fa6dc4fa (patch)
treec7cffac849cd47a7512bcfaa2df99a94920f9f06 /contrib/auditor-report.tex.j2
parent6b2a84dfe154e5eb77af8b11c47d93ef61cdeb50 (diff)
downloadexchange-11b643dd83fa3e75d5aa3b4918c55065fa6dc4fa.tar.gz
exchange-11b643dd83fa3e75d5aa3b4918c55065fa6dc4fa.tar.bz2
exchange-11b643dd83fa3e75d5aa3b4918c55065fa6dc4fa.zip
add test for wire transfer subject malformed
Diffstat (limited to 'contrib/auditor-report.tex.j2')
-rw-r--r--contrib/auditor-report.tex.j222
1 files changed, 12 insertions, 10 deletions
diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2
index a5c2bec27..33aab79cf 100644
--- a/contrib/auditor-report.tex.j2
+++ b/contrib/auditor-report.tex.j2
@@ -688,6 +688,7 @@ translate into a financial loss (yet).
{\bf Reserve} & {\bf Auditor} & {\bf Exchange}
\endfoot
\hline
+ \hline
{\bf Total deltas} &
{{ data.total_balance_summary_delta_plus}} &
- {{ data.total_balance_summary_delta_minus}} \\
@@ -767,21 +768,23 @@ relate to outgoing wire transfers being malformed.
This happens if the exchange somehow creates wire transfers
with duplicate or malformed wire transfer subjects.
+% Table generation tested by testcase #19 in test-auditor.sh
+
{% if wire.wire_format_inconsistencies|length() == 0 %}
{\bf No wire format inconsistencies found.}
{% else %}
- \begin{longtable}{p{4.5cm}|r}
- \multicolumn{3}{c}{ {\bf Row hash} } \\
- {\bf Diagnostic} & {\bf Amount} \\
+ \begin{longtable}{p{6.5cm}|r}
+ \multicolumn{2}{c}{ {\bf Diagnostic} } \\
+ {\bf Row (base32)} & {\bf Amount} \\
\hline \hline
\endfirsthead
- \multicolumn{3}{c}{ {\bf Row hash} } \\
- {\bf Diagnostic} & {\bf Amount} \\
+ \multicolumn{2}{c}{ {\bf Diagnostic} } \\
+ {\bf Row (base32)} & {\bf Amount} \\
\hline \hline
\endhead
\hline
- \multicolumn{3}{c}{ {\bf Row hash} } \\
- {\bf Diagnostic} & {\bf Amount} \\
+ \multicolumn{2}{c}{ {\bf Row (base32)} } \\
+ {\bf Row (base32)} & {\bf Amount} \\
\endfoot
\hline
\hline
@@ -791,10 +794,9 @@ with duplicate or malformed wire transfer subjects.
\label{table:outgoing:wtid}
\endlastfoot
{% for item in wire.wire_format_inconsistencies %}
- \multicolumn{3}{l}{ \tt \small \truncate{\textwidth}{ {{ item.wire_offset_hash }} } } \\
+ \multicolumn{2}{l}{ \small \truncate{0.95\textwidth}{ {{ item.diagnostic }} } } \\
\nopagebreak
- {{ item.diagnostic }} &
- {{ item.amount }} \\
+ { \tt \small \truncate{0.95\textwidth}{ {{ item.wire_offset }} } } & {{ item.amount }} \\ \hline
{% endfor %}
\end{longtable}
{% endif %}