some modifications

This commit is contained in:
Joseph 2022-11-15 05:55:43 -05:00
parent 656ec29d5e
commit 5335e30dd1
No known key found for this signature in database
GPG Key ID: E709789D3076B5CC

View File

@ -98,9 +98,9 @@ run (void *cls)
goto cleanup; goto cleanup;
} }
for (unsigned int i = 0; i< 5;i++) for (unsigned int i = 0; i< 6;i++)
{ {
static unsigned int batches[]={1, 2, 4, 16, 64}; static unsigned int batches[]={1, 1, 2, 4, 16, 64};
const char *sndr = "payto://x-taler-bank/localhost:8080/1"; const char *sndr = "payto://x-taler-bank/localhost:8080/1";
struct TALER_Amount value; struct TALER_Amount value;
unsigned int batch_size = batches[i]; unsigned int batch_size = batches[i];
@ -109,7 +109,6 @@ run (void *cls)
struct TALER_ReservePublicKeyP reserve_pub; struct TALER_ReservePublicKeyP reserve_pub;
now = GNUNET_TIME_timestamp_get(); now = GNUNET_TIME_timestamp_get();
RND_BLK (&reserve_pub);
GNUNET_assert (GNUNET_OK == GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount (CURRENCY ":1.000010", TALER_string_to_amount (CURRENCY ":1.000010",
&value)); &value));
@ -117,6 +116,7 @@ run (void *cls)
"test_by_exchange_j"); "test_by_exchange_j");
for (unsigned int k=0;k<batch_size;k++) for (unsigned int k=0;k<batch_size;k++)
{ {
RND_BLK (&reserve_pub);
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
plugin->reserves_in_insert (plugin->cls, plugin->reserves_in_insert (plugin->cls,
&reserve_pub, &reserve_pub,
@ -160,7 +160,7 @@ main (int argc,
return -1; return -1;
} }
GNUNET_log_setup (argv[0], GNUNET_log_setup (argv[0],
"DEBUG", "WARNING",
NULL); NULL);
plugin_name++; plugin_name++;
(void) GNUNET_asprintf (&testname, (void) GNUNET_asprintf (&testname,