mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
fill checkqueue_tests vector for completion checking
This commit is contained in:
parent
3cc720592a
commit
693f206082
1 changed files with 3 additions and 0 deletions
|
|
@ -161,6 +161,9 @@ static void Correct_Queue_range(std::vector<size_t> range)
|
|||
CCheckQueueControl<FakeCheckCheckCompletion> control(small_queue.get());
|
||||
while (total) {
|
||||
vChecks.resize(std::min(total, (size_t) InsecureRandRange(10)));
|
||||
for (size_t i = 0; i < vChecks.size(); ++i) {
|
||||
vChecks[i] = new FakeCheckCheckCompletion();
|
||||
}
|
||||
total -= vChecks.size();
|
||||
control.Add(vChecks);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue