Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Longarithm committed Jun 4, 2024
1 parent c27a35a commit 0e39a15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/epoch-manager/src/validator_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ fn get_chunk_producers_assignment(
let num_chunk_producers = chunk_producers.len();
let minimum_validators_per_shard =
epoch_config.validator_selection_config.minimum_validators_per_shard as usize;
let mut preselected = 0;
let prev_chunk_producers_assignment = if use_stable_shard_assignment {
let mut assignment = vec![];
for validator_ids in prev_epoch_info.chunk_producers_settlement().iter() {
Expand All @@ -144,7 +145,9 @@ fn get_chunk_producers_assignment(
validator_stakes.push(prev_epoch_info.get_validator(*validator_id));
}
assignment.push(validator_stakes);
preselected += 1;
}
println!("Preselected chunk producers: {}", preselected);
Some(assignment)
} else {
None
Expand Down

0 comments on commit 0e39a15

Please sign in to comment.