Skip to content
Snippets Groups Projects
Commit 70881b5d authored by Arkadiy Paronyan's avatar Arkadiy Paronyan Committed by GitHub
Browse files

Lower bft timeout (#483)

parent 65b66e6b
Branches
No related merge requests found
......@@ -248,6 +248,7 @@ impl<B: Block, P: Proposer<B>> rhododendron::Context for BftInstance<B, P>
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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment