fn fetch_chain_height(&self) -> Result<Option<u64>, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::ChainHeight(height))) =
                self.fetch(&DbKey::Metadata(MetadataKey::ChainHeight))?
            {
                height
            } else {
                None
            },
        )
    }
// Fetches the chain metadata chain height.
Fetches the chain metadata chain height.
Fetches the chain metadata chain height .
fn fetch_chain_height(&self) -> Result<Option<u64>, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::ChainHeight(height))) =
                self.fetch(&DbKey::Metadata(MetadataKey::ChainHeight))?
            {
                height
            } else {
                None
            },
        )
    }
fn fetch_chain_height ( & self ) -> Result < Option < u64 > , ChainStorageError > { Ok ( if let Some ( DbValue :: Metadata ( MetadataValue :: ChainHeight ( height ) ) ) = self . fetch ( & DbKey :: Metadata ( MetadataKey :: ChainHeight ) ) ? { height } else { None } , ) }
Fetches the chain metadata chain height.
Fetches the chain metadata chain height .
&self
&self