From 39bf079f5482e52288cea3580813791bc7354757 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 27 Jul 2022 23:34:29 +0300 Subject: [PATCH] fix(llmq): Calculate quorum members while not debugging llmq MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ¯\_(ツ)_/¯ --- src/llmq/utils.cpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/llmq/utils.cpp b/src/llmq/utils.cpp index 740cdc50d0..14be3d5863 100644 --- a/src/llmq/utils.cpp +++ b/src/llmq/utils.cpp @@ -160,21 +160,23 @@ std::vector> CLLMQUtils::ComputeQuorumMembersB LogPrint(BCLog::LLMQ, "QuarterComposition h[%d] i[%d]:%s\n", pCycleQuorumBaseBlockIndex->nHeight, i, ss.str()); } + } - for (auto i = 0; i < nQuorums; ++i) { - for (auto &m: previousQuarters.quarterHMinus3C[i]) { - quorumMembers[i].push_back(std::move(m)); - } - for (auto &m: previousQuarters.quarterHMinus2C[i]) { - quorumMembers[i].push_back(std::move(m)); - } - for (auto &m: previousQuarters.quarterHMinusC[i]) { - quorumMembers[i].push_back(std::move(m)); - } - for (auto &m: newQuarterMembers[i]) { - quorumMembers[i].push_back(std::move(m)); - } + for (auto i = 0; i < nQuorums; ++i) { + for (auto &m: previousQuarters.quarterHMinus3C[i]) { + quorumMembers[i].push_back(std::move(m)); + } + for (auto &m: previousQuarters.quarterHMinus2C[i]) { + quorumMembers[i].push_back(std::move(m)); + } + for (auto &m: previousQuarters.quarterHMinusC[i]) { + quorumMembers[i].push_back(std::move(m)); + } + for (auto &m: newQuarterMembers[i]) { + quorumMembers[i].push_back(std::move(m)); + } + if (LogAcceptCategory(BCLog::LLMQ)) { std::stringstream ss; ss << " ["; for (auto &m: quorumMembers[i]) {