// Fetches the chain metadata best block hash.
Fetches the chain metadata best block hash.
Fetches the chain metadata best block hash .
fn fetch_best_block(&self) -> Result<Option<BlockHash>, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::BestBlock(best_block))) =
                self.fetch(&DbKey::Metadata(MetadataKey::BestBlock))?
            {
                best_block
            } else {
                None
            },
        )
    }
fn fetch_best_block ( & self ) -> Result < Option < BlockHash > , ChainStorageError > { Ok ( if let Some ( DbValue :: Metadata ( MetadataValue :: BestBlock ( best_block ) ) ) = self . fetch ( & DbKey :: Metadata ( MetadataKey :: BestBlock ) ) ? { best_block } else { None } , ) }
Fetches the chain metadata best block hash.
Fetches the chain metadata best block hash .
&self