pub fn feasibility_check_page_inner_with_snapshot<T: MinerConfig>(
partial_solution: SolutionOf<T>,
snapshot_voters: &BoundedVec<Voter<<T as MinerConfig>::AccountId, <T as MinerConfig>::MaxVotesPerVoter>, T::VoterSnapshotPerBlock>,
snapshot_targets: &BoundedVec<T::AccountId, T::TargetSnapshotPerBlock>,
desired_targets: u32,
) -> Result<SupportsOfMiner<T>, FeasibilityError>
Expand description
Same as feasibility_check_page_inner
, but with a snapshot.
This is exported as a standalone function, relying on MinerConfig
rather than Config
so that
it can be used in any offchain miner.