pub async fn block_metadata(
        &mut self,
        n: validator::BlockNumber,
    ) -> anyhow::Result<Option<BlockMetadata>> {
        let Some(b) = self.block_payload(n).await.context("block_payload()")? else {
            return Ok(None);
        };
        Ok(Some(BlockMetadata {
            payload_hash: b.encode().hash(),
        }))
    }
Fetches L2 block metadata for the given block number.
core/lib/dal/src/consensus_dal/mod.rs