Benchmark debug
This commit is contained in:
parent
bdd8d67be3
commit
5df58a77c5
@ -223,6 +223,24 @@ withdraw_transaction (void *cls,
|
|||||||
|
|
||||||
/* Check if balance is sufficient */
|
/* Check if balance is sufficient */
|
||||||
r.pub = wc->wsrd.reserve_pub;
|
r.pub = wc->wsrd.reserve_pub;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Debug block.
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
#define PUBSIZE 80
|
||||||
|
char pub_s[PUBSIZE];
|
||||||
|
|
||||||
|
GNUNET_break
|
||||||
|
(NULL != GNUNET_STRINGS_data_to_string (&r.pub,
|
||||||
|
sizeof (r.pub),
|
||||||
|
&pub_s[0],
|
||||||
|
PUBSIZE));
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"Trying to withdraw from reserve: %s\n",
|
||||||
|
pub_s);
|
||||||
|
}
|
||||||
|
|
||||||
qs = TEH_plugin->reserve_get (TEH_plugin->cls,
|
qs = TEH_plugin->reserve_get (TEH_plugin->cls,
|
||||||
session,
|
session,
|
||||||
&r);
|
&r);
|
||||||
|
@ -500,9 +500,28 @@ history_cb (void *cls,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Adding wire transfer over %s with subject `%s'\n",
|
"Adding wire transfer over %s with (hashed) subject `%s'\n",
|
||||||
TALER_amount2s (&details->amount),
|
TALER_amount2s (&details->amount),
|
||||||
TALER_B2S (&details->wtid));
|
TALER_B2S (&details->wtid));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Debug block.
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
/* Should be 53, give 80 just to be redundant. */
|
||||||
|
#define PUBSIZE 80
|
||||||
|
char wtid_s[PUBSIZE];
|
||||||
|
|
||||||
|
GNUNET_break
|
||||||
|
(NULL != GNUNET_STRINGS_data_to_string (&details->wtid,
|
||||||
|
sizeof (details->wtid),
|
||||||
|
&wtid_s[0],
|
||||||
|
PUBSIZE));
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
|
"Plain text subject (= reserve_pub): %s\n",
|
||||||
|
wtid_s);
|
||||||
|
}
|
||||||
|
|
||||||
current_batch_size++;
|
current_batch_size++;
|
||||||
/* Wire transfer identifier == reserve public key */
|
/* Wire transfer identifier == reserve public key */
|
||||||
GNUNET_assert (sizeof (reserve_pub) == sizeof (details->wtid));
|
GNUNET_assert (sizeof (reserve_pub) == sizeof (details->wtid));
|
||||||
|
Loading…
Reference in New Issue
Block a user