Skip to content

Commit

Permalink
Use proper max tick height calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin committed Mar 13, 2019
1 parent 3af6ef0 commit 484e16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ impl Bank {
}

pub fn is_votable(&self) -> bool {
let max_tick_height = self.slot * self.ticks_per_slot;
let max_tick_height = (self.slot + 1) * self.ticks_per_slot - 1;
self.is_delta.load(Ordering::Relaxed) && self.tick_height() == max_tick_height
}
}
Expand Down

0 comments on commit 484e16b

Please sign in to comment.