fn fetch_accumulated_work(&self) -> Result<Option<u128>, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::AccumulatedWork(accumulated_work))) =
                self.fetch(&DbKey::Metadata(MetadataKey::AccumulatedWork))?
            {
                accumulated_work
            } else {
                None
            },
        )
    }
// Fetches the chain metadata accumulated work.
Fetches the chain metadata accumulated work.
Fetches the chain metadata accumulated work .
fn fetch_accumulated_work(&self) -> Result<Option<u128>, ChainStorageError> {
        Ok(
            if let Some(DbValue::Metadata(MetadataValue::AccumulatedWork(accumulated_work))) =
                self.fetch(&DbKey::Metadata(MetadataKey::AccumulatedWork))?
            {
                accumulated_work
            } else {
                None
            },
        )
    }
fn fetch_accumulated_work ( & self ) -> Result < Option < u128 > , ChainStorageError > { Ok ( if let Some ( DbValue :: Metadata ( MetadataValue :: AccumulatedWork ( accumulated_work ) ) ) = self . fetch ( & DbKey :: Metadata ( MetadataKey :: AccumulatedWork ) ) ? { accumulated_work } else { None } , ) }
Fetches the chain metadata accumulated work.
Fetches the chain metadata accumulated work .
&self
&self