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

Commit

Permalink
Merge pull request #4566 from spartucus/patch-1
Browse files Browse the repository at this point in the history
Fix confirmations check
  • Loading branch information
heifner authored Aug 10, 2018
2 parents 3904025 + ac85d6e commit e58b62c
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 @@ -294,7 +294,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 e58b62c

Please sign in to comment.