pub fn target_difficulty_limit(network: Network) -> ExpandedDifficulty {
        let limit: U256 = match network {
            /* 2^243 - 1 */
            Network::Mainnet => (U256::one() << 243) - 1,
            /* 2^251 - 1 */
            Network::Testnet => (U256::one() << 251) - 1,
        };

        // `zcashd` converts the PoWLimit into a compact representation before
        // using it to perform difficulty filter checks.
        //
        // The Zcash specification converts to compact for the default difficulty
        // filter, but not for testnet minimum difficulty blocks. (ZIP 205 and
        // ZIP 208 don't specify this conversion either.) See #1277 for details.
        ExpandedDifficulty(limit)
            .to_compact()
            .to_expanded()
            .expect("difficulty limits are valid expanded values")
    }
/// Returns the easiest target difficulty allowed on `network`.
///
/// See `PoWLimit` in the Zcash specification.
Returns the easiest target difficulty allowed on `network`.
See `PoWLimit` in the Zcash specification.
Returns the easiest target difficulty allowed on ` network ` . See ` PoWLimit ` in the Zcash specification .
pub fn target_difficulty_limit(network: Network) -> ExpandedDifficulty {
        let limit: U256 = match network {
            /* 2^243 - 1 */
            Network::Mainnet => (U256::one() << 243) - 1,
            /* 2^251 - 1 */
            Network::Testnet => (U256::one() << 251) - 1,
        };
        // `zcashd` converts the PoWLimit into a compact representation before
        // using it to perform difficulty filter checks.
        //
        // The Zcash specification converts to compact for the default difficulty
        // filter, but not for testnet minimum difficulty blocks. (ZIP 205 and
        // ZIP 208 don't specify this conversion either.) See #1277 for details.
        ExpandedDifficulty(limit)
            .to_compact()
            .to_expanded()
            .expect("difficulty limits are valid expanded values")
    }
pub fn target_difficulty_limit ( network : Network ) -> ExpandedDifficulty { let limit : U256 = match network { /* 2^243 - 1 */ Network :: Mainnet => ( U256 :: one ( ) << 243 ) - 1 , /* 2^251 - 1 */ Network :: Testnet => ( U256 :: one ( ) << 251 ) - 1 , } ; // `zcashd` converts the PoWLimit into a compact representation before // using it to perform difficulty filter checks. // // The Zcash specification converts to compact for the default difficulty // filter, but not for testnet minimum difficulty blocks. (ZIP 205 and // ZIP 208 don't specify this conversion either.) See #1277 for details. ExpandedDifficulty ( limit ) . to_compact ( ) . to_expanded ( ) . expect ( " " ) }
Returns the easiest target difficulty allowed on `network`.
Returns the easiest target difficulty allowed on ` network ` .
network
Network