increment recoup progress points

This commit is contained in:
Christian Grothoff 2020-03-26 20:06:58 +01:00
parent 5871861d6b
commit 51bdfab935
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1821,6 +1821,8 @@ recoup_cb (void *cls,
{ {
struct CoinContext *cc = 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) timestamp;
(void) reserve_pub; (void) reserve_pub;
return check_recoup (cc, return check_recoup (cc,
@ -1861,6 +1863,8 @@ recoup_refresh_cb (void *cls,
{ {
struct CoinContext *cc = 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) timestamp;
(void) old_coin_pub; (void) old_coin_pub;
return check_recoup (cc, return check_recoup (cc,