use precalculated max_tick_height (#5084)
This commit is contained in:
		| @@ -1381,8 +1381,7 @@ impl Bank { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     pub fn is_votable(&self) -> bool { |     pub fn is_votable(&self) -> bool { | ||||||
|         let max_tick_height = (self.slot + 1) * self.ticks_per_slot - 1; |         self.is_delta.load(Ordering::Relaxed) && self.tick_height() == self.max_tick_height | ||||||
|         self.is_delta.load(Ordering::Relaxed) && self.tick_height() == max_tick_height |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /// Add an instruction processor to intercept instructions before the dynamic loader. |     /// Add an instruction processor to intercept instructions before the dynamic loader. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user