From 3e2edf6bee6f7c6b1223a6ea6ae2ba6789d13b46 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 28 Nov 2024 01:49:13 +0700 Subject: [PATCH] feat: add only evo nodes to single-node-quorum --- src/llmq/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/llmq/utils.cpp b/src/llmq/utils.cpp index 67f045c2c0df96..157d0d25d43722 100644 --- a/src/llmq/utils.cpp +++ b/src/llmq/utils.cpp @@ -175,13 +175,14 @@ std::vector GetAllQuorumMembers(Consensus::LLMQType llmqTy std::vector ComputeQuorumMembers(Consensus::LLMQType llmqType, CDeterministicMNManager& dmnman, const CBlockIndex* pQuorumBaseBlockIndex) { // it will just works for evo, when you set it as PlatformQuorum - bool EvoOnly = (Params().GetConsensus().llmqTypePlatform == llmqType) && IsV19Active(pQuorumBaseBlockIndex); const auto& llmq_params_opt = Params().GetLLMQ(llmqType); assert(llmq_params_opt.has_value()); if (llmq_params_opt->useRotation || pQuorumBaseBlockIndex->nHeight % llmq_params_opt->dkgInterval != 0) { ASSERT_IF_DEBUG(false); return {}; } + bool EvoOnly = (Params().GetConsensus().llmqTypePlatform == llmqType) && IsV19Active(pQuorumBaseBlockIndex); + if (llmq_params_opt->size == 1) EvoOnly = true; const CBlockIndex* pWorkBlockIndex = IsV20Active(pQuorumBaseBlockIndex) ? pQuorumBaseBlockIndex->GetAncestor(pQuorumBaseBlockIndex->nHeight - 8) :