pub(crate) fn read_block_header_and_finality_signatures_by_height(
        &self,
        height: u64,
    ) -> Result<Option<BlockHeaderWithMetadata>, Error> {
        let mut txn = self.env.begin_ro_txn()?;
        let maybe_block_header_and_finality_signatures =
            self.get_block_header_and_metadata_by_height(&mut txn, height)?;
        drop(txn);
        Ok(maybe_block_header_and_finality_signatures)
    }
/// Retrieves a block header to handle a network request.
Retrieves a block header to handle a network request.
Retrieves a block header to handle a network request .
pub(crate) fn read_block_header_and_finality_signatures_by_height(
        &self,
        height: u64,
    ) -> Result<Option<BlockHeaderWithMetadata>, Error> {
        let mut txn = self.env.begin_ro_txn()?;
        let maybe_block_header_and_finality_signatures =
            self.get_block_header_and_metadata_by_height(&mut txn, height)?;
        drop(txn);
        Ok(maybe_block_header_and_finality_signatures)
    }
pub ( crate ) fn read_block_header_and_finality_signatures_by_height ( & self , height : u64 , ) -> Result < Option < BlockHeaderWithMetadata > , Error > { let mut txn = self . env . begin_ro_txn ( ) ? ; let maybe_block_header_and_finality_signatures = self . get_block_header_and_metadata_by_height ( & mut txn , height ) ? ; drop ( txn ) ; Ok ( maybe_block_header_and_finality_signatures ) }
Retrieves a block header to handle a network request.
Retrieves a block header to handle a network request .
&self
height
u64
&self
height
u64