handle case rowid = 0
This commit is contained in:
parent
e3ec645b0d
commit
5e2b3e1cfa
@ -112,9 +112,8 @@ 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 + 1); /* should be monotonically increasing */
|
GNUNET_assert (rowid == reserve_in_serial_id); /* should be monotonically increasing */
|
||||||
reserve_in_serial_id = GNUNET_MAX (rowid,
|
reserve_in_serial_id = rowid + 1;
|
||||||
reserve_in_serial_id);
|
|
||||||
GNUNET_CRYPTO_hash (reserve_pub,
|
GNUNET_CRYPTO_hash (reserve_pub,
|
||||||
sizeof (*reserve_pub),
|
sizeof (*reserve_pub),
|
||||||
&key);
|
&key);
|
||||||
@ -174,9 +173,8 @@ 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 + 1); /* should be monotonically increasing */
|
GNUNET_assert (rowid == reserve_out_serial_id); /* should be monotonically increasing */
|
||||||
reserve_in_serial_id = GNUNET_MAX (rowid,
|
reserve_in_serial_id = rowid + 1;
|
||||||
reserve_out_serial_id);
|
|
||||||
GNUNET_CRYPTO_hash (reserve_pub,
|
GNUNET_CRYPTO_hash (reserve_pub,
|
||||||
sizeof (*reserve_pub),
|
sizeof (*reserve_pub),
|
||||||
&key);
|
&key);
|
||||||
|
Loading…
Reference in New Issue
Block a user