Update assert msg
This commit is contained in:
parent
3ef88be04b
commit
b1b2337ec3
@ -42,6 +42,8 @@ pub fn get_attesters_and_proposer(
|
|||||||
let proposer_count: usize = 1;
|
let proposer_count: usize = 1;
|
||||||
let ideal_validator_count: usize = (config.attester_count as usize)
|
let ideal_validator_count: usize = (config.attester_count as usize)
|
||||||
+ (*skip_count as usize) + proposer_count;
|
+ (*skip_count as usize) + proposer_count;
|
||||||
|
assert!(ideal_validator_count >= 2,
|
||||||
|
"ideal_validator_count must be >=2");
|
||||||
if ideal_validator_count > active_validator_count {
|
if ideal_validator_count > active_validator_count {
|
||||||
return (
|
return (
|
||||||
shuffled_validator_indicies[0..active_validator_count - 1].to_vec(),
|
shuffled_validator_indicies[0..active_validator_count - 1].to_vec(),
|
||||||
|
Loading…
Reference in New Issue
Block a user