referrerpolicy=no-referrer-when-downgrade
pub fn generate_voter_cache<T: MinerConfig>(
    snapshot: &Vec<MinerVoterOf<T>>,
) -> BTreeMap<T::AccountId, usize>
Expand description

Generate a btree-map cache of the voters and their indices.

This can be used to efficiently build index getter closures.