Function hotshot::traits::election::helpers::calc_num_slots

source ยท
fn calc_num_slots(count: u64, odd: bool) -> u64
Expand description

Determines how many possible values can be made for the given odd/even E.g. if count is 5, then possible values would be [0, 1, 2, 3, 4] if odd = true, slots = 2 (1 or 3), else slots = 3 (0, 2, 4)