Skip to content

Commit

Permalink
Fix default TestState initialization: claim queue len should be equ…
Browse files Browse the repository at this point in the history
…al to `allowed_ancestry_len`
  • Loading branch information
tdimitrov committed Jun 27, 2024
1 parent fa321ce commit 96392a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ impl Default for TestState {
claim_queue.insert(
CoreIndex(0),
iter::repeat(chain_ids[0])
.take(async_backing_params.max_candidate_depth as usize + 1)
.take(async_backing_params.allowed_ancestry_len as usize)
.collect(),
);
claim_queue.insert(CoreIndex(1), VecDeque::new());
claim_queue.insert(
CoreIndex(2),
iter::repeat(chain_ids[1])
.take(async_backing_params.max_candidate_depth as usize + 1)
.take(async_backing_params.allowed_ancestry_len as usize)
.collect(),
);

Expand Down

0 comments on commit 96392a5

Please sign in to comment.