essential_node

Function validate_solution

source
pub async fn validate_solution(
    conn_pool: &ConnectionPool,
    contract_registry: &ContentAddress,
    solution: Solution,
) -> Result<ValidateOutcome, ValidationError>
Expand description

Validates a solution. Creates a block at the next block number and current timestamp with the given solution and validates it.

Returns a ValidationResult if no ValidationError occurred that prevented the solution from being validated.