sp_consensus_subspace::consensus

Function verify_solution

source
pub fn verify_solution(
    solution: WrappedSolution,
    slot: SlotNumber,
    params: WrappedVerifySolutionParams<'_>,
) -> Result<SolutionRange, String>
Expand description

Verify whether solution is valid, returns solution distance that is <= solution_range/2 on success.