summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-26 20:06:58 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-26 20:06:58 +0100
commit51bdfab93565856473c2df9d654c45693adaf5d3 (patch)
treebeaf75c8aad08d2aedbd356b42c2729747d12fd8 /src
parent5871861d6bf35de49b128294ddbddfb09a8121a5 (diff)
downloadexchange-51bdfab93565856473c2df9d654c45693adaf5d3.tar.gz
exchange-51bdfab93565856473c2df9d654c45693adaf5d3.tar.bz2
exchange-51bdfab93565856473c2df9d654c45693adaf5d3.zip
increment recoup progress points
Diffstat (limited to 'src')
-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,