Skip to content

Commit

Permalink
update to use an actual majority
Browse files Browse the repository at this point in the history
  • Loading branch information
flodnv committed Sep 19, 2024
1 parent 017e8b2 commit d7c25a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ bool SQLiteNode::update() {
}

// If the majority of full peers responds with abstain, then re-search.
const bool majorityAbstained = abstainCount * 2 >= numFullPeers;
const bool majorityAbstained = abstainCount * 2 > numFullPeers;
if (majorityAbstained) {
// Majority abstained, meaning we're probably forked,
// so we go back to searching so we can go back to synchronizing and see if we're forked.
Expand Down

0 comments on commit d7c25a7

Please sign in to comment.