pub fn insert_block(
tx: &Transaction<'_>,
block: &Block,
) -> Result<ContentAddress>
Expand description
For the given block:
- Insert an entry into the
block
table. - Insert each of its solution sets into the
solution_set
andblock_solution_set
tables.
Returns the ContentAddress
of the inserted block.