Skip to main content

verify_solution

Function verify_solution 

Source
pub fn verify_solution(
    solution: <PassFatPointerAndDecode<WrappedSolution> as RIType>::Inner,
    slot: <SlotNumber as RIType>::Inner,
    params: <PassFatPointerAndDecode<WrappedVerifySolutionParams<'_>> as RIType>::Inner,
) -> <AllocateAndReturnByCodec<Result<SolutionRange, String>> as RIType>::Inner
Expand description

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