fn next_min_difficulty_target(&self, params: &Params) -> Bits {
        assert!(params.allow_min_difficulty_blocks);

        let pow_limit_bits = block::pow_limit_bits(&params.network);

        for (height, header) in self.iter().rev() {
            if header.bits != pow_limit_bits
                || height % self.params.difficulty_adjustment_interval() == 0
            {
                return header.bits;
            }
        }
        pow_limit_bits
    }
/// Get the next minimum-difficulty target. Only valid in testnet and regtest networks.
Get the next minimum-difficulty target. Only valid in testnet and regtest networks.
Get the next minimum - difficulty target . Only valid in testnet and regtest networks .
fn next_min_difficulty_target(&self, params: &Params) -> Bits {
        assert!(params.allow_min_difficulty_blocks);
        let pow_limit_bits = block::pow_limit_bits(&params.network);
        for (height, header) in self.iter().rev() {
            if header.bits != pow_limit_bits
                || height % self.params.difficulty_adjustment_interval() == 0
            {
                return header.bits;
            }
        }
        pow_limit_bits
    }
fn next_min_difficulty_target ( & self , params : & Params ) -> Bits { assert ! ( params allow_min_difficulty_blocks ) ; let pow_limit_bits = block :: pow_limit_bits ( & params . network ) ; for ( height , header ) in self . iter ( ) . rev ( ) { if header . bits != pow_limit_bits || height % self . params . difficulty_adjustment_interval ( ) == 0 { return header . bits ; } } pow_limit_bits }
Get the next minimum-difficulty target.
Get the next minimum - difficulty target .
&self
params
&Params