Function insert_block

Source
pub fn insert_block(
    tx: &Transaction<'_>,
    block: &Block,
) -> Result<ContentAddress>
Expand description

For the given block:

  1. Insert an entry into the block table.
  2. Insert each of its solution sets into the solution_set and block_solution_set tables.

Returns the ContentAddress of the inserted block.