Skip to content

Commit

Permalink
fix: add missing functionality for BuildQuorumFromCommitment
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Nov 28, 2024
1 parent 0f229e6 commit 2fe82bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/llmq/quorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,12 @@ CQuorumPtr CQuorumManager::BuildQuorumFromCommitment(const Consensus::LLMQType l

quorum->Init(std::move(qc), pQuorumBaseBlockIndex, minedBlockHash, members);

if (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;
Expand Down

0 comments on commit 2fe82bc

Please sign in to comment.