diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-14 21:08:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-14 21:08:33 +0200 |
commit | 62d5aae1198e7e8374470539e19a112593fb0b2b (patch) | |
tree | ccf7b452a96ec7068ba0b5823c5881881ee2b276 /src/auditor | |
parent | 2570b21d23cd7b6cd48ae20433dc61adbb898644 (diff) |
check invariant that refund deadline should not be after wire deadline
Diffstat (limited to 'src/auditor')
-rw-r--r-- | src/auditor/taler-helper-auditor-coins.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c index b93521775..8b163fd05 100644 --- a/src/auditor/taler-helper-auditor-coins.c +++ b/src/auditor/taler-helper-auditor-coins.c @@ -1574,7 +1574,6 @@ deposit_cb (void *cls, struct DenominationSummary *ds; enum GNUNET_DB_QueryStatus qs; - (void) wire_deadline; (void) done; GNUNET_assert (rowid >= ppc.last_deposit_serial_id); /* should be monotonically increasing */ ppc.last_deposit_serial_id = rowid + 1; @@ -1589,6 +1588,13 @@ deposit_cb (void *cls, "denomination key not found"); return GNUNET_OK; } + if (refund_deadline.abs_value_us > + wire_deadline.abs_value_us) + { + report_row_inconsistency ("deposits", + rowid, + "refund deadline past wire deadline"); + } if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) { |