summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/auditor/taler-helper-auditor-coins.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c
index 375c901e..33591cec 100644
--- a/src/auditor/taler-helper-auditor-coins.c
+++ b/src/auditor/taler-helper-auditor-coins.c
@@ -1821,6 +1821,8 @@ recoup_cb (void *cls,
{
struct CoinContext *cc = cls;
+ GNUNET_assert (rowid >= ppc.last_recoup_serial_id); /* should be monotonically increasing */
+ ppc.last_recoup_serial_id = rowid + 1;
(void) timestamp;
(void) reserve_pub;
return check_recoup (cc,
@@ -1861,6 +1863,8 @@ recoup_refresh_cb (void *cls,
{
struct CoinContext *cc = cls;
+ GNUNET_assert (rowid >= ppc.last_recoup_refresh_serial_id); /* should be monotonically increasing */
+ ppc.last_recoup_refresh_serial_id = rowid + 1;
(void) timestamp;
(void) old_coin_pub;
return check_recoup (cc,