From 7c98545b330e0e96e64fadb08b79f19c1a24194d Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Thu, 20 Dec 2018 15:27:47 -0800 Subject: [PATCH] Use newer votes to calculate confirmation time (#2247) --- src/status_deque.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_deque.rs b/src/status_deque.rs index a0630cd24f..f5fcbcdefd 100644 --- a/src/status_deque.rs +++ b/src/status_deque.rs @@ -190,7 +190,7 @@ impl StatusDeque { supermajority_stake: u64, ) -> Option { // Sort by tick height - ticks_and_stakes.sort_by(|a, b| a.0.cmp(&b.0)); + ticks_and_stakes.sort_by(|a, b| b.0.cmp(&a.0)); let current_tick_height = self.tick_height; let mut total = 0; for (tick_height, stake) in ticks_and_stakes.iter() {