Skip to content

Commit 1d87137

Browse files
committed
[validation] Annotate ChainstateManager::m_best_header as guarded by cs_main
1 parent 84f4ac3 commit 1d87137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ class ChainstateManager
997997
std::set<CBlockIndex*> m_failed_blocks;
998998

999999
/** Best header we've seen so far (used for getheaders queries' starting points). */
1000-
CBlockIndex* m_best_header = nullptr;
1000+
CBlockIndex* m_best_header GUARDED_BY(::cs_main){nullptr};
10011001

10021002
//! The total number of bytes available for us to use across all in-memory
10031003
//! coins caches. This will be split somehow across chainstates.

0 commit comments

Comments
 (0)