Skip to content

Commit

Permalink
Fix compute subset
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed May 3, 2024
1 parent 6de845a commit 98544f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/config/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ impl ValidatorSet {
let i = holes.partition_point(|item| item <= &new_hole);
debug_assert!(i == 0 || holes[i - 1] < new_hole);

holes.insert(i.saturating_sub(1), new_hole);
holes.insert(i, new_hole);
}

nodes
Expand Down

0 comments on commit 98544f3

Please sign in to comment.