diff options
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire.c')
-rw-r--r-- | src/auditor/taler-helper-auditor-wire.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c index 8dded816f..eee186ca3 100644 --- a/src/auditor/taler-helper-auditor-wire.c +++ b/src/auditor/taler-helper-auditor-wire.c | |||
@@ -1014,7 +1014,7 @@ wire_out_cb (void *cls, | |||
1014 | 1014 | ||
1015 | payto_uri = TALER_JSON_wire_to_payto (wire); | 1015 | payto_uri = TALER_JSON_wire_to_payto (wire); |
1016 | if (0 != strcasecmp (payto_uri, | 1016 | if (0 != strcasecmp (payto_uri, |
1017 | roi->details.credit_account_url)) | 1017 | roi->details.credit_account_uri)) |
1018 | { | 1018 | { |
1019 | /* Destination bank account is wrong in actual wire transfer, so | 1019 | /* Destination bank account is wrong in actual wire transfer, so |
1020 | we should count the wire transfer as entirely spurious, and | 1020 | we should count the wire transfer as entirely spurious, and |
@@ -1055,7 +1055,7 @@ wire_out_cb (void *cls, | |||
1055 | "receiver account mismatch"), | 1055 | "receiver account mismatch"), |
1056 | GNUNET_JSON_pack_string ("target", | 1056 | GNUNET_JSON_pack_string ("target", |
1057 | roi->details. | 1057 | roi->details. |
1058 | credit_account_url), | 1058 | credit_account_uri), |
1059 | GNUNET_JSON_pack_string ("account_section", | 1059 | GNUNET_JSON_pack_string ("account_section", |
1060 | wa->ai->section_name))); | 1060 | wa->ai->section_name))); |
1061 | TALER_ARL_amount_add (&total_bad_amount_out_minus, | 1061 | TALER_ARL_amount_add (&total_bad_amount_out_minus, |
@@ -1165,7 +1165,7 @@ check_rc_matches (void *cls, | |||
1165 | if ( (0 == GNUNET_memcmp (&ctx->roi->details.wtid, | 1165 | if ( (0 == GNUNET_memcmp (&ctx->roi->details.wtid, |
1166 | &rc->wtid)) && | 1166 | &rc->wtid)) && |
1167 | (0 == strcasecmp (rc->receiver_account, | 1167 | (0 == strcasecmp (rc->receiver_account, |
1168 | ctx->roi->details.credit_account_url)) && | 1168 | ctx->roi->details.credit_account_uri)) && |
1169 | (0 == TALER_amount_cmp (&rc->amount, | 1169 | (0 == TALER_amount_cmp (&rc->amount, |
1170 | &ctx->roi->details.amount)) ) | 1170 | &ctx->roi->details.amount)) ) |
1171 | { | 1171 | { |
@@ -1207,7 +1207,7 @@ complain_out_not_found (void *cls, | |||
1207 | }; | 1207 | }; |
1208 | 1208 | ||
1209 | (void) key; | 1209 | (void) key; |
1210 | hash_rc (roi->details.credit_account_url, | 1210 | hash_rc (roi->details.credit_account_uri, |
1211 | &roi->details.wtid, | 1211 | &roi->details.wtid, |
1212 | &rkey); | 1212 | &rkey); |
1213 | GNUNET_CONTAINER_multihashmap_get_multiple (reserve_closures, | 1213 | GNUNET_CONTAINER_multihashmap_get_multiple (reserve_closures, |
@@ -1341,7 +1341,7 @@ history_debit_cb (void *cls, | |||
1341 | TALER_B2S (&details->wtid)); | 1341 | TALER_B2S (&details->wtid)); |
1342 | /* Update offset */ | 1342 | /* Update offset */ |
1343 | wa->out_wire_off = row_off; | 1343 | wa->out_wire_off = row_off; |
1344 | slen = strlen (details->credit_account_url) + 1; | 1344 | slen = strlen (details->credit_account_uri) + 1; |
1345 | roi = GNUNET_malloc (sizeof (struct ReserveOutInfo) | 1345 | roi = GNUNET_malloc (sizeof (struct ReserveOutInfo) |
1346 | + slen); | 1346 | + slen); |
1347 | GNUNET_CRYPTO_hash (&details->wtid, | 1347 | GNUNET_CRYPTO_hash (&details->wtid, |
@@ -1350,9 +1350,9 @@ history_debit_cb (void *cls, | |||
1350 | roi->details.amount = details->amount; | 1350 | roi->details.amount = details->amount; |
1351 | roi->details.execution_date = details->execution_date; | 1351 | roi->details.execution_date = details->execution_date; |
1352 | roi->details.wtid = details->wtid; | 1352 | roi->details.wtid = details->wtid; |
1353 | roi->details.credit_account_url = (const char *) &roi[1]; | 1353 | roi->details.credit_account_uri = (const char *) &roi[1]; |
1354 | memcpy (&roi[1], | 1354 | memcpy (&roi[1], |
1355 | details->credit_account_url, | 1355 | details->credit_account_uri, |
1356 | slen); | 1356 | slen); |
1357 | if (GNUNET_OK != | 1357 | if (GNUNET_OK != |
1358 | GNUNET_CONTAINER_multihashmap_put (out_map, | 1358 | GNUNET_CONTAINER_multihashmap_put (out_map, |
@@ -1414,6 +1414,7 @@ process_debits (void *cls) | |||
1414 | wa->ai->auth, | 1414 | wa->ai->auth, |
1415 | wa->out_wire_off, | 1415 | wa->out_wire_off, |
1416 | INT64_MAX, | 1416 | INT64_MAX, |
1417 | GNUNET_TIME_UNIT_ZERO, | ||
1417 | &history_debit_cb, | 1418 | &history_debit_cb, |
1418 | wa); | 1419 | wa); |
1419 | if (NULL == wa->dhh) | 1420 | if (NULL == wa->dhh) |
@@ -1496,7 +1497,7 @@ reserve_in_cb (void *cls, | |||
1496 | rii->details.amount = *credit; | 1497 | rii->details.amount = *credit; |
1497 | rii->details.execution_date = execution_date; | 1498 | rii->details.execution_date = execution_date; |
1498 | rii->details.reserve_pub = *reserve_pub; | 1499 | rii->details.reserve_pub = *reserve_pub; |
1499 | rii->details.debit_account_url = (const char *) &rii[1]; | 1500 | rii->details.debit_account_uri = (const char *) &rii[1]; |
1500 | memcpy (&rii[1], | 1501 | memcpy (&rii[1], |
1501 | sender_account_details, | 1502 | sender_account_details, |
1502 | slen); | 1503 | slen); |
@@ -1752,8 +1753,8 @@ history_credit_cb (void *cls, | |||
1752 | } | 1753 | } |
1753 | goto cleanup; | 1754 | goto cleanup; |
1754 | } | 1755 | } |
1755 | if (0 != strcasecmp (details->debit_account_url, | 1756 | if (0 != strcasecmp (details->debit_account_uri, |
1756 | rii->details.debit_account_url)) | 1757 | rii->details.debit_account_uri)) |
1757 | { | 1758 | { |
1758 | TALER_ARL_report (report_missattribution_in_inconsistencies, | 1759 | TALER_ARL_report (report_missattribution_in_inconsistencies, |
1759 | GNUNET_JSON_PACK ( | 1760 | GNUNET_JSON_PACK ( |
@@ -1843,6 +1844,7 @@ process_credits (void *cls) | |||
1843 | wa->ai->auth, | 1844 | wa->ai->auth, |
1844 | wa->in_wire_off, | 1845 | wa->in_wire_off, |
1845 | INT64_MAX, | 1846 | INT64_MAX, |
1847 | GNUNET_TIME_UNIT_ZERO, | ||
1846 | &history_credit_cb, | 1848 | &history_credit_cb, |
1847 | wa); | 1849 | wa); |
1848 | if (NULL == wa->chh) | 1850 | if (NULL == wa->chh) |