essential_builder_db

Function insert_solution_failure

source
pub fn insert_solution_failure(
    conn: &Connection,
    solution_ca: &ContentAddress,
    solution_failure: SolutionFailure<'_>,
) -> Result<()>
Expand description

Record a failure to include a solution in a block.

We only record that a failure occurred, the block number, solution index at which the failure occurred, and a basic error message that can be returned to the submitter. If the user or application requires more detailed information about the failure, the block number and solution index should be enough to reconstruct the failure with a synced node.