From aeea5f0ec112f9ec29da37806925e961c4998365 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 8 May 2025 13:30:12 +0000 Subject: [PATCH] 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. --- src/node/interfaces.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 8aec2758f8b..3f9d14c3281 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -431,7 +431,7 @@ public: }; // NOLINTNEXTLINE(misc-no-recursion) -bool FillBlock(const CBlockIndex* index, const FoundBlock& block, UniqueLock& lock, const CChain& active, const BlockManager& blockman) +bool FillBlock(const CBlockIndex* index, const FoundBlock& block, UniqueLock& lock, const CChain& active, const BlockManager& blockman) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { if (!index) return false; if (block.m_hash) *block.m_hash = index->GetBlockHash();