From 285058aeb3753a6ac93b3af79097f4f8076e4d38 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 27 Nov 2023 21:58:28 +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 899de1dbdb55a1..e5e462c4301ce4 100644 --- a/src/llmq/quorums.cpp +++ b/src/llmq/quorums.cpp @@ -309,6 +309,10 @@ void CQuorumManager::StartCheckQuorumConnectionsThreads(const CBlockIndex* pinde void CQuorumManager::CheckQuorumConnections(const Consensus::LLMQParams& llmqParams, const CBlockIndex* pindexNew) const { + if (!fMasternodeMode && !utils::IsWatchQuorumsEnabled()) { + return; + } + cxxtimer::Timer t(/*start=*/ true); LogPrint(BCLog::LLMQ, "CQuorumManager::%s -- llmqType[%d] h[%d] start\n", __func__, ToUnderlying(llmqParams.type), pindexNew->nHeight);