Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loop in CLLMQUtils::GetQuorumConnections to add at least 2 connec…
…tions (#2796) * Fix warning about size_t to int conversion * Fix loop in CLLMQUtils::GetQuorumConnections to add at least 2 connections When reaching very small quorum sizes, the current algorithm results in only a single connection to be added. This would be fine usually, but is an issue when this connection fails. We should always have at least one backup connection. This fixes simple PoSe test failures where the quorum size gets down to 4 with one of the 4 members being down. If other nodes are unlucky to connect to this node, they fail as well even though 3 members in a quorum should work fine. * Update src/llmq/quorums_utils.cpp Co-Authored-By: codablock <[email protected]>
- Loading branch information