mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix: add new quorum to cache for BuildQuorumFromCommitment
This commit is contained in:
parent
62360a3096
commit
fd987f38bb
@ -411,6 +411,12 @@ CQuorumPtr CQuorumManager::BuildQuorumFromCommitment(const Consensus::LLMQType l
|
|||||||
|
|
||||||
quorum->Init(std::move(qc), pQuorumBaseBlockIndex, minedBlockHash, members);
|
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;
|
bool hasValidVvec = false;
|
||||||
if (WITH_LOCK(cs_db, return quorum->ReadContributions(*db))) {
|
if (WITH_LOCK(cs_db, return quorum->ReadContributions(*db))) {
|
||||||
hasValidVvec = true;
|
hasValidVvec = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user