essential_builder_db

Function insert_solution_submission

source
pub fn insert_solution_submission(
    tx: &Transaction<'_>,
    solution: &Solution,
    timestamp: Duration,
) -> Result<ContentAddress>
Expand description

Insert a submitted solution and the time it was received into the table.

This first inserts the solution and its CA into the solution table if it doesn’t already exist, then inserts associated timestamp into the submission table.