pub async fn is_batch_stored(&mut self, number: L1BatchNumber) -> anyhow::Result<bool> {
        Ok(self
            .storage
            .blocks_dal()
            .get_l1_batch_header(number)
            .await
            .context("get_l1_batch_header()")?
            .is_some())
    }
Checks if the L1 batch and metadata is stored in the database.
core/lib/dal/src/consensus_dal/mod.rs