pub async fn clear_pending_l2_block(
        connection: &mut Connection<'_, Core>,
        last_sealed_l2_block: L2BlockNumber,
    ) -> anyhow::Result<()> {
        let seal_subtasks = L2BlockSealProcess::all_subtasks();
        for subtask in seal_subtasks {
            subtask.rollback(connection, last_sealed_l2_block).await?;
        }

        Ok(())
    }
Clears pending l2 block data from the database.
core/node/state_keeper/src/io/seal_logic/l2_block_seal_subtasks.rs