aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/taler-helper-auditor-wire.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-27 14:34:44 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-03-27 14:34:44 +0200
commit1f1d675f3dff18f3779d4d01cdb2b69da9e2fd8b (patch)
tree9d3796b32d4afb6ead29c5f7e6593c41ae904d29 /src/auditor/taler-helper-auditor-wire.c
parentb9a9af3a59f3abdb09afb9d0f9e4c0d83df789b7 (diff)
downloadexchange-1f1d675f3dff18f3779d4d01cdb2b69da9e2fd8b.tar.xz
-remove tiny field, no longer needed
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire.c')
-rw-r--r--src/auditor/taler-helper-auditor-wire.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index 89758c2fc..274344ff6 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -778,8 +778,6 @@ commit (enum GNUNET_DB_QueryStatus qs)
* @param amount value of the deposit, including fee
* @param payto_uri where should the funds be wired
* @param deadline what was the requested wire transfer deadline
- * @param tiny did the exchange defer this transfer because it is too small?
- * NOTE: only valid in internal audit mode!
* @param done did the exchange claim that it made a transfer?
* NOTE: only valid in internal audit mode!
*/
@@ -790,7 +788,6 @@ wire_missing_cb (void *cls,
const struct TALER_Amount *amount,
const char *payto_uri,
struct GNUNET_TIME_Timestamp deadline,
- bool tiny,
bool done)
{
json_t *rep;
@@ -799,23 +796,11 @@ wire_missing_cb (void *cls,
TALER_ARL_amount_add (&total_amount_lag,
&total_amount_lag,
amount);
- if (internal_checks)
- {
- /* In internal mode, we insist that the entry was
- actually marked as tiny. */
- if (tiny &&
- (0 > TALER_amount_cmp (amount,
- &tiny_amount)) )
- return; /* acceptable, amount was tiny */
- }
- else
- {
- /* External auditors do not replicate tiny, so they
- only check that the amount is tiny */
- if (0 > TALER_amount_cmp (amount,
- &tiny_amount))
- return; /* acceptable, amount was tiny */
- }
+ /* For now, we simplify and only check that the
+ amount was tiny */
+ if (0 > TALER_amount_cmp (amount,
+ &tiny_amount))
+ return; /* acceptable, amount was tiny */
rep = GNUNET_JSON_PACK (
GNUNET_JSON_pack_uint64 ("row",
rowid),