fn fetch_chain_metadata(&self) -> Result<ChainMetadata, ChainStorageError> {
        Ok(ChainMetadata {
            height_of_longest_chain: self.fetch_chain_height()?,
            best_block: self.fetch_best_block()?,
            pruning_horizon: self.fetch_pruning_horizon()?,
            effective_pruned_height: self.fetch_effective_pruned_height()?,
            accumulated_difficulty: self.fetch_accumulated_work()?,
        })
    }
/// Returns the metadata of the chain.
Returns the metadata of the chain.
Returns the metadata of the chain .
fn fetch_chain_metadata(&self) -> Result<ChainMetadata, ChainStorageError> {
        Ok(ChainMetadata {
            height_of_longest_chain: self.fetch_chain_height()?,
            best_block: self.fetch_best_block()?,
            pruning_horizon: self.fetch_pruning_horizon()?,
            effective_pruned_height: self.fetch_effective_pruned_height()?,
            accumulated_difficulty: self.fetch_accumulated_work()?,
        })
    }
fn fetch_chain_metadata ( & self ) -> Result < ChainMetadata , ChainStorageError > { Ok ( ChainMetadata { height_of_longest_chain : self . fetch_chain_height ( ) ? , best_block : self . fetch_best_block ( ) ? , pruning_horizon : self . fetch_pruning_horizon ( ) ? , effective_pruned_height : self . fetch_effective_pruned_height ( ) ? , accumulated_difficulty : self . fetch_accumulated_work ( ) ? , } ) }
Returns the metadata of the chain.
Returns the metadata of the chain .
&self
&self