Skip to content

Commit 56416d0

Browse files
authored
[tesseract-consensus] Fix participant check in tesseract-bsc (#714)
1 parent c9d6c05 commit 56416d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tesseract/consensus/bsc/src/host.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl<C: Config> IsmpHost for BscPosHost<C> {
199199
);
200200

201201
if validators_bit_set.iter().as_bitslice().count_ones() <
202-
((2 * next_validators.validators.len() / 3) + 1)
202+
(2 * next_validators.validators.len() / 3)
203203
{
204204
log::trace!(
205205
"Not enough participants in bsc update for block {block:?}"
@@ -315,7 +315,7 @@ impl<C: Config> IsmpHost for BscPosHost<C> {
315315
);
316316

317317
if validators_bit_set.iter().as_bitslice().count_ones() <
318-
((2 * consensus_state.current_validators.len() / 3) + 1)
318+
(2 * consensus_state.current_validators.len() / 3)
319319
{
320320
log::trace!(
321321
"Not enough participants in bsc update for block {block:?}"

0 commit comments

Comments
 (0)