essential_node::validate

Function validate_solution_dry_run

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

Validates a solution without adding it to the database. 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.