Skip to content

Commit aeea5f0

Browse files
committed
thread-safety: add missing lock annotation
No warning is currently emitted because our reverse_lock does not enforce our thread-safety annotations. Once it is fixed, the unlock would cause a warning.
1 parent 832c57a commit aeea5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/interfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class NodeImpl : public Node
431431
};
432432

433433
// NOLINTNEXTLINE(misc-no-recursion)
434-
bool FillBlock(const CBlockIndex* index, const FoundBlock& block, UniqueLock<RecursiveMutex>& lock, const CChain& active, const BlockManager& blockman)
434+
bool FillBlock(const CBlockIndex* index, const FoundBlock& block, UniqueLock<RecursiveMutex>& lock, const CChain& active, const BlockManager& blockman) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
435435
{
436436
if (!index) return false;
437437
if (block.m_hash) *block.m_hash = index->GetBlockHash();

0 commit comments

Comments
 (0)