fn fetch_pruning_horizon(&self) -> Result<u64, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::PruningHorizon(pruning_horizon))) =
                self.fetch(&DbKey::Metadata(MetadataKey::PruningHorizon))?
            {
                pruning_horizon
            } else {
                0
            },
        )
    }
// Fetches the chain metadata pruning horizon.
Fetches the chain metadata pruning horizon.
Fetches the chain metadata pruning horizon .
fn fetch_pruning_horizon(&self) -> Result<u64, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::PruningHorizon(pruning_horizon))) =
                self.fetch(&DbKey::Metadata(MetadataKey::PruningHorizon))?
            {
                pruning_horizon
            } else {
                0
            },
        )
    }
fn fetch_pruning_horizon ( & self ) -> Result < u64 , ChainStorageError > { Ok ( if let Some ( DbValue :: Metadata ( MetadataValue :: PruningHorizon ( pruning_horizon ) ) ) = self . fetch ( & DbKey :: Metadata ( MetadataKey :: PruningHorizon ) ) ? { pruning_horizon } else { 0 } , ) }
Fetches the chain metadata pruning horizon.
Fetches the chain metadata pruning horizon .
&self
&self