Skip to content

Commit

Permalink
fix: CheckQuorumConnections should not be running on regular non-watc…
Browse files Browse the repository at this point in the history
…hing nodes
  • Loading branch information
UdjinM6 committed Nov 28, 2023
1 parent 6c57cc2 commit 4e038d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/llmq/quorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ void CQuorumManager::UpdatedBlockTip(const CBlockIndex* pindexNew, bool fInitial

void CQuorumManager::CheckQuorumConnections(const Consensus::LLMQParams& llmqParams, const CBlockIndex* pindexNew) const
{
if (!fMasternodeMode && !utils::IsWatchQuorumsEnabled()) {
return;
}

auto lastQuorums = ScanQuorums(llmqParams.type, pindexNew, (size_t)llmqParams.keepOldConnections);

auto connmanQuorumsToDelete = connman.GetMasternodeQuorums(llmqParams.type);
Expand Down

0 comments on commit 4e038d8

Please sign in to comment.