From 4e038d81056c0d654d27a504a58caf54ef4dd04b Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 28 Nov 2023 00:11:47 +0300 Subject: [PATCH] fix: CheckQuorumConnections should not be running on regular non-watching nodes --- src/llmq/quorums.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/llmq/quorums.cpp b/src/llmq/quorums.cpp index 122a5584ae223..a3770e09bedc7 100644 --- a/src/llmq/quorums.cpp +++ b/src/llmq/quorums.cpp @@ -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);