increments of more than 1 do happen

This commit is contained in:
Christian Grothoff 2016-11-17 15:15:13 +01:00
parent e216d9e22d
commit 2859dbe5e3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -112,7 +112,7 @@ handle_reserve_in (void *cls,
matches wire transfers from the bank. Not sure if this should be matches wire transfers from the bank. Not sure if this should be
done within the core auditor logic though... */ done within the core auditor logic though... */
GNUNET_assert (rowid == reserve_in_serial_id); /* should be monotonically increasing */ GNUNET_assert (rowid >= reserve_in_serial_id); /* should be monotonically increasing */
reserve_in_serial_id = rowid + 1; reserve_in_serial_id = rowid + 1;
GNUNET_CRYPTO_hash (reserve_pub, GNUNET_CRYPTO_hash (reserve_pub,
sizeof (*reserve_pub), sizeof (*reserve_pub),
@ -173,7 +173,7 @@ handle_reserve_out (void *cls,
struct ReserveSummary *rs; struct ReserveSummary *rs;
/* TODO: check signatures, in particluar the reserve_sig! */ /* TODO: check signatures, in particluar the reserve_sig! */
GNUNET_assert (rowid == reserve_out_serial_id); /* should be monotonically increasing */ GNUNET_assert (rowid >= reserve_out_serial_id); /* should be monotonically increasing */
reserve_out_serial_id = rowid + 1; reserve_out_serial_id = rowid + 1;
GNUNET_CRYPTO_hash (reserve_pub, GNUNET_CRYPTO_hash (reserve_pub,
sizeof (*reserve_pub), sizeof (*reserve_pub),