From 67144b0784d4de1e2040c92400ca90a3ccb6b961 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 27 Nov 2023 21:14:21 +0300 Subject: [PATCH] fix: consolidate Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> --- src/llmq/quorums.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/llmq/quorums.cpp b/src/llmq/quorums.cpp index 5fe86f314b4eb..0fde2f582e0c0 100644 --- a/src/llmq/quorums.cpp +++ b/src/llmq/quorums.cpp @@ -1019,8 +1019,7 @@ void CQuorumManager::StartCleanupOldQuorumDataThread(const CBlockIndex* pIndex) if (quorumThreadInterrupt) { break; } - const auto vecQuorums = ScanQuorums(params.type, pIndex, params.keepOldKeys); - for (const auto& pQuorum : vecQuorums) { + for (const auto& pQuorum : ScanQuorums(params.type, pIndex, params.keepOldKeys)) { dbKeysToSkip.insert(MakeQuorumKey(*pQuorum)); } }