summaryrefslogtreecommitdiff
path: root/src/auditor/taler-helper-auditor-wire.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-28 20:02:08 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-28 20:02:08 +0200
commit581a39b5b5037d4e0419d8ce5448371a52499d80 (patch)
tree1cd2e034e527f87f0d51f61e7ebc556383041bda /src/auditor/taler-helper-auditor-wire.c
parent1ef9735115730c5d236791ce0c4353d548110159 (diff)
downloadexchange-581a39b5b5037d4e0419d8ce5448371a52499d80.tar.gz
exchange-581a39b5b5037d4e0419d8ce5448371a52499d80.tar.bz2
exchange-581a39b5b5037d4e0419d8ce5448371a52499d80.zip
improve reporting, also use auditor fee calculation when computing reserve balance updates in case of disagreement on coin value/fee
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire.c')
-rw-r--r--src/auditor/taler-helper-auditor-wire.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index 5e5d16748..1facd2155 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -1017,7 +1017,7 @@ wire_out_cb (void *cls,
we should count the wire transfer as entirely spurious, and
additionally consider the justified wire transfer as missing. */
TALER_ARL_report (report_wire_out_inconsistencies,
- json_pack ("{s:I, s:o, s:o, s:o, s:o, s:s, s:s}",
+ json_pack ("{s:I, s:o, s:o, s:o, s:o, s:s, s:s, s:s}",
"row", (json_int_t) rowid,
"amount_wired", TALER_JSON_from_amount (
&roi->details.amount),
@@ -1027,12 +1027,13 @@ wire_out_cb (void *cls,
"timestamp", TALER_ARL_json_from_time_abs (
date),
"diagnostic", "receiver account mismatch",
+ "target", payto_uri,
"account_section", wa->section_name));
TALER_ARL_amount_add (&total_bad_amount_out_plus,
&total_bad_amount_out_plus,
&roi->details.amount);
TALER_ARL_report (report_wire_out_inconsistencies,
- json_pack ("{s:I, s:o, s:o, s:o, s:o, s:s, s:s}",
+ json_pack ("{s:I, s:o, s:o, s:o, s:o, s:s, s:s, s:s}",
"row", (json_int_t) rowid,
"amount_wired", TALER_JSON_from_amount (
&zero),
@@ -1042,6 +1043,7 @@ wire_out_cb (void *cls,
"timestamp", TALER_ARL_json_from_time_abs (
date),
"diagnostic", "receiver account mismatch",
+ "target", roi->details.credit_account_url,
"account_section", wa->section_name));
TALER_ARL_amount_add (&total_bad_amount_out_minus,
&total_bad_amount_out_minus,