pub fn secondary_pow_ratio(height: u64) -> u64 {
	if global::is_testnet() {
		if height < T4_CUCKAROO_HARDFORK {
			// Maintaining pre hardfork testnet4 behavior
			90u64.saturating_sub(height / WEEK_HEIGHT)
		} else {
			90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))
		}
	} else {
		// Mainnet (or testing mainnet code).
		90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))
	}
}
/// Ratio the secondary proof of work should take over the primary, as a
/// function of block height (time). Starts at 90% losing a percent
/// approximately every week. Represented as an integer between 0 and 100.
Ratio the secondary proof of work should take over the primary, as a
function of block height (time). Starts at 90% losing a percent
approximately every week. Represented as an integer between 0 and 100.
Ratio the secondary proof of work should take over the primary as a function of block height ( time ) . Starts at 90% losing a percent approximately every week . Represented as an integer between 0 and 100 .
pub fn secondary_pow_ratio(height: u64) -> u64 {
	if global::is_testnet() {
		if height < T4_CUCKAROO_HARDFORK {
			// Maintaining pre hardfork testnet4 behavior
			90u64.saturating_sub(height / WEEK_HEIGHT)
		} else {
			90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))
		}
	} else {
		// Mainnet (or testing mainnet code).
		90u64.saturating_sub(height / (2 * YEAR_HEIGHT / 90))
	}
}
pub fn secondary_pow_ratio ( height : u64 ) -> u64 { if global :: is_testnet ( ) { if height < T4_CUCKAROO_HARDFORK { // Maintaining pre hardfork testnet4 behavior 90u64 . saturating_sub ( height / WEEK_HEIGHT ) } else { 90u64 . saturating_sub ( height / ( 2 * YEAR_HEIGHT / 90 ) ) } } else { // Mainnet (or testing mainnet code). 90u64 . saturating_sub ( height / ( 2 * YEAR_HEIGHT / 90 ) ) } }
Ratio the secondary proof of work should take over the primary, as a
function of block height (time).
Ratio the secondary proof of work should take over the primary as a function of block height ( time ) .
height
u64