Skip to content

Commit 0114f58

Browse files
committed
fix: guard quorumBaseBlockIndexCache
1 parent 2c6cbc9 commit 0114f58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/llmq/quorums.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ class CQuorumManager
264264
// On mainnet, we have around 62 quorums active at any point; let's cache a little more than double that to be safe.
265265
// it maps `quorum_hash` to `pindex`
266266
mutable Mutex cs_quorumBaseBlockIndexCache;
267-
mutable Uint256LruHashMap<const CBlockIndex*, 128 /*max_size*/> quorumBaseBlockIndexCache;
267+
mutable Uint256LruHashMap<const CBlockIndex*, /*max_size=*/128> quorumBaseBlockIndexCache
268+
GUARDED_BY(cs_quorumBaseBlockIndexCache);
268269

269270
mutable ctpl::thread_pool workerPool;
270271
mutable CThreadInterrupt quorumThreadInterrupt;

0 commit comments

Comments
 (0)