Sdk: start to appease clippy's integer arithmetic check (#15736)
* Move to module-level clippy allowance * Fix stake_weighted_timestamp math * Fix genesis_config * Fix shred_version * Fix hard_forks * Fix process_instruction * Add ArithmeticOverflow ix error * Fix nonce_keyed_account * Update BankSlotDelta frozen abi due to new ix error
This commit is contained in:
		| @@ -218,7 +218,10 @@ impl GenesisConfig { | ||||
|     } | ||||
|  | ||||
|     pub fn ns_per_slot(&self) -> u128 { | ||||
|         self.poh_config.target_tick_duration.as_nanos() * self.ticks_per_slot() as u128 | ||||
|         self.poh_config | ||||
|             .target_tick_duration | ||||
|             .as_nanos() | ||||
|             .saturating_mul(self.ticks_per_slot() as u128) | ||||
|     } | ||||
|  | ||||
|     pub fn slots_per_year(&self) -> f64 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user