Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix confirmations check
Browse files Browse the repository at this point in the history
  • Loading branch information
spartucus authored Jul 10, 2018
1 parent 5875549 commit ac85d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/fork_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ namespace eosio { namespace chain {
b->add_confirmation( c );

if( b->bft_irreversible_blocknum < b->block_num &&
b->confirmations.size() > ((b->active_schedule.producers.size() * 2) / 3) ) {
b->confirmations.size() >= ((b->active_schedule.producers.size() * 2) / 3 + 1) ) {
set_bft_irreversible( c.block_id );
}
}
Expand Down

0 comments on commit ac85d6e

Please sign in to comment.