need to initialize reserve_pub first
This commit is contained in:
parent
2859dbe5e3
commit
6274aa34d3
@ -225,12 +225,17 @@ verify_reserve_balance (void *cls,
|
|||||||
struct TALER_EXCHANGEDB_Reserve reserve;
|
struct TALER_EXCHANGEDB_Reserve reserve;
|
||||||
struct TALER_Amount balance;
|
struct TALER_Amount balance;
|
||||||
|
|
||||||
|
reserve.pub = rs->reserve_pub;
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
edb->reserve_get (edb->cls,
|
edb->reserve_get (edb->cls,
|
||||||
esession,
|
esession,
|
||||||
&reserve))
|
&reserve))
|
||||||
{
|
{
|
||||||
GNUNET_break (0);
|
GNUNET_break (0);
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
|
"Failed to find summary for reserve `%s'\n",
|
||||||
|
TALER_B2S (&rs->reserve_pub));
|
||||||
|
|
||||||
return GNUNET_OK;
|
return GNUNET_OK;
|
||||||
}
|
}
|
||||||
/* TODO: check reserve.expiry? */
|
/* TODO: check reserve.expiry? */
|
||||||
|
Loading…
Reference in New Issue
Block a user