From 70881b5dc8cb015331f11a30c3aeb0f8031767b3 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Thu, 2 Aug 2018 17:30:51 +0200 Subject: [PATCH] Lower bft timeout (#483) --- substrate/substrate/bft/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/substrate/substrate/bft/src/lib.rs b/substrate/substrate/bft/src/lib.rs index fcdc36d480..b1091af409 100644 --- a/substrate/substrate/bft/src/lib.rs +++ b/substrate/substrate/bft/src/lib.rs @@ -248,6 +248,7 @@ impl> rhododendron::Context for BftInstance fn begin_round_timeout(&self, round: usize) -> Self::RoundTimeout { use std::time::{Instant, Duration}; + let round = round / 3; let round = ::std::cmp::min(63, round) as u32; let timeout = 1u64.checked_shl(round) .unwrap_or_else(u64::max_value)