/// The "total overage" to use when verifying the kernel sums for a full
/// chain state. For a full chain state this is 0 - (height * reward).
The "total overage" to use when verifying the kernel sums for a full
chain state. For a full chain state this is 0 - (height * reward).
The " total overage " to use when verifying the kernel sums for a full chain state . For a full chain state this is 0 - ( height * reward ) .
pub fn total_overage(&self, genesis_had_reward: bool) -> i64 {
		let reward_count = self.height;
		// Grin strategy:
		/*
			if genesis_had_reward {
			((reward_count * REWARD) as i64).checked_neg().unwrap_or(0)
		*/
		// MWC DEBUG - want to understand when genesis doesn't have a reward
		//if !genesis_had_reward {panic!("total_overage call with genesis_had_reward false");}
		// MWC strategy:
		(calc_mwc_block_overage(reward_count, genesis_had_reward) as i64)
			.checked_neg()
			.unwrap_or(0)
	}
pub fn total_overage ( & self , genesis_had_reward : bool ) -> i64 { let reward_count = self . height ; // Grin strategy: /*
			if genesis_had_reward {
			((reward_count * REWARD) as i64).checked_neg().unwrap_or(0)
		*/ // MWC DEBUG - want to understand when genesis doesn't have a reward //if !genesis_had_reward {panic!("total_overage call with genesis_had_reward false");} // MWC strategy: ( calc_mwc_block_overage ( reward_count , genesis_had_reward ) as i64 ) . checked_neg ( ) . unwrap_or ( 0 ) }
The "total overage" to use when verifying the kernel sums for a full
chain state.
The " total overage " to use when verifying the kernel sums for a full chain state .
&self
genesis_had_reward
bool