pub fn target_at_fn<T: MinerConfig>(
snapshot: &Vec<T::AccountId>,
) -> impl Fn(SolutionTargetIndexOf<T>) -> Option<T::AccountId> + '_
Expand description
Create a function that can map a target index (SolutionTargetIndexOf
) to the actual target
account using a linearly indexable snapshot.