Skip to content

Commit 221aa27

Browse files
refactor: use non-const reference for pQuorum in quorum iteration loop to allow moves
1 parent 129c0bf commit 221aa27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/llmq/quorums.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void CQuorumManager::TriggerQuorumDataRecoveryThreads(CConnman& connman, const C
257257
LogPrint(BCLog::LLMQ, "CQuorumManager::%s -- Process block %s\n", __func__, pIndex->GetBlockHash().ToString());
258258

259259
for (const auto& params : Params().GetConsensus().llmqs) {
260-
const auto vecQuorums = ScanQuorums(params.type, pIndex, params.keepOldConnections);
260+
auto vecQuorums = ScanQuorums(params.type, pIndex, params.keepOldConnections);
261261

262262
// First check if we are member of any quorum of this type
263263
const uint256 proTxHash = m_mn_activeman != nullptr ? m_mn_activeman->GetProTxHash() : uint256();
@@ -266,7 +266,7 @@ void CQuorumManager::TriggerQuorumDataRecoveryThreads(CConnman& connman, const C
266266
return pQuorum->IsValidMember(proTxHash);
267267
});
268268

269-
for (const auto& pQuorum : vecQuorums) {
269+
for (auto& pQuorum : vecQuorums) {
270270
// If there is already a thread running for this specific quorum skip it
271271
if (pQuorum->fQuorumDataRecoveryThreadRunning) {
272272
continue;

0 commit comments

Comments
 (0)