pub fn fetch_target_difficulties(
        &self,
        pow_algo: PowAlgorithm,
        height: u64,
        block_window: usize,
    ) -> Result<Vec<(EpochTime, Difficulty)>, ChainStorageError>
    {
        let db = self.db_read_access()?;
        db.fetch_target_difficulties(pow_algo, height, block_window)
    }
/// Returns the set of target difficulties for the specified proof of work algorithm.
Returns the set of target difficulties for the specified proof of work algorithm.
Returns the set of target difficulties for the specified proof of work algorithm .
pub fn fetch_target_difficulties(
        &self,
        pow_algo: PowAlgorithm,
        height: u64,
        block_window: usize,
    ) -> Result<Vec<(EpochTime, Difficulty)>, ChainStorageError>
    {
        let db = self.db_read_access()?;
        db.fetch_target_difficulties(pow_algo, height, block_window)
    }
pub fn fetch_target_difficulties ( & self , pow_algo : PowAlgorithm , height : u64 , block_window : usize , ) -> Result < Vec < ( EpochTime , Difficulty ) > , ChainStorageError > { let db = self . db_read_access ( ) ? ; db . fetch_target_difficulties ( pow_algo , height , block_window ) }
Returns the set of target difficulties for the specified proof of work algorithm.
Returns the set of target difficulties for the specified proof of work algorithm .
&self
pow_algo
PowAlgorithm
height
u64
block_window
usize
&self
pow_algo
PowAlgorithm
height
u64
block_window
usize