From 7072ab491d6562c10d4a82185de8a47f891edf22 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 11 Aug 2022 11:18:49 +0300 Subject: [PATCH] fix: make linter happy (4926+4952 follow-up) (#4965) --- src/evo/cbtx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evo/cbtx.cpp b/src/evo/cbtx.cpp index ce7b484b59..5449fe7486 100644 --- a/src/evo/cbtx.cpp +++ b/src/evo/cbtx.cpp @@ -177,12 +177,12 @@ bool CalcCbTxMerkleRootQuorums(const CBlock& block, const CBlockIndex* pindexPre int64_t nTime2 = GetTimeMicros(); nTimeMinedAndActive += nTime2 - nTime1; LogPrint(BCLog::BENCHMARK, " - GetMinedAndActiveCommitmentsUntilBlock: %.2fms [%.2fs]\n", 0.001 * (nTime2 - nTime1), nTimeMinedAndActive * 0.000001); - static CCriticalSection cs_cache; - static std::map> quorums_cached GUARDED_BY(cs_cache); - static std::map> qcHashes_cached GUARDED_BY(cs_cache); - static std::map> qcIndexedHashes_cached GUARDED_BY(cs_cache); - { + static CCriticalSection cs_cache; + static std::map> quorums_cached GUARDED_BY(cs_cache); + static std::map> qcHashes_cached GUARDED_BY(cs_cache); + static std::map> qcIndexedHashes_cached GUARDED_BY(cs_cache); + LOCK(cs_cache); if (quorums == quorums_cached) {