async fn seal_l1_batch(storage: &mut Connection<'_, Core>, number: u32) {
    let block_header = create_l2_block(number);
    storage
        .blocks_dal()
        .insert_l2_block(&block_header)
        .await
        .unwrap();

    let header = create_l1_batch(number);
    storage
        .blocks_dal()
        .insert_mock_l1_batch(&header)
        .await
        .unwrap();
    storage
        .blocks_dal()
        .mark_l2_blocks_as_executed_in_l1_batch(L1BatchNumber(number))
        .await
        .unwrap();
}
Seals an L1 batch with a single L2 block.
core/node/db_pruner/src/tests.rs