diff --git a/src/llmq/quorums.cpp b/src/llmq/quorums.cpp index 67b2890b57..79ed6d5c5c 100644 --- a/src/llmq/quorums.cpp +++ b/src/llmq/quorums.cpp @@ -411,6 +411,12 @@ CQuorumPtr CQuorumManager::BuildQuorumFromCommitment(const Consensus::LLMQType l quorum->Init(std::move(qc), pQuorumBaseBlockIndex, minedBlockHash, members); + if (populate_cache && llmq_params_opt->size == 1) { + WITH_LOCK(cs_map_quorums, mapQuorumsCache[llmqType].insert(quorumHash, quorum)); + + return quorum; + } + bool hasValidVvec = false; if (WITH_LOCK(cs_db, return quorum->ReadContributions(*db))) { hasValidVvec = true;