have variant where we first setup all reserves

This commit is contained in:
Christian Grothoff 2020-03-20 12:34:59 +01:00
parent 159ce744b9
commit e4293ec075
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -297,6 +297,9 @@ eval_probability (float probability)
} }
static int reserves_first = 1;
/** /**
* Actual commands construction and execution. * Actual commands construction and execution.
* *
@ -355,7 +358,9 @@ run (void *cls,
GNUNET_asprintf (&batch_label, GNUNET_asprintf (&batch_label,
"batch-start-%u", "batch-start-%u",
j); j);
all_commands[j * (howmany_coins + 1)] all_commands[reserves_first
? j
: j * (howmany_coins + 1)]
= TALER_TESTING_cmd_batch (add_label (batch_label), = TALER_TESTING_cmd_batch (add_label (batch_label),
make_reserve); make_reserve);
} }
@ -433,7 +438,9 @@ run (void *cls,
"unit-%u-%u", "unit-%u-%u",
i, i,
j); j);
all_commands[j * (howmany_coins + 1) + (1 + i)] all_commands[reserves_first
? howmany_reserves + j * howmany_coins + i
: j * (howmany_coins + 1) + (1 + i)]
= TALER_TESTING_cmd_batch (add_label (unit_label), = TALER_TESTING_cmd_batch (add_label (unit_label),
unit); unit);
} }