aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-11-14 11:01:48 +0000
committerdergoegge <n.goeggi@gmail.com>2023-03-30 14:55:28 +0200
commit1d87137227ee125018006935d55164a72265c935 (patch)
tree194622c69034c94f61906a7ceee1a4dc154b7059 /src/validation.h
parent84f4ac39fda7ffa5dc84e92d92dd1eeeb5e20f8c (diff)
[validation] Annotate ChainstateManager::m_best_header as guarded by cs_main
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index aba863db09..0044004b79 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -997,7 +997,7 @@ public:
std::set<CBlockIndex*> m_failed_blocks;
/** Best header we've seen so far (used for getheaders queries' starting points). */
- CBlockIndex* m_best_header = nullptr;
+ CBlockIndex* m_best_header GUARDED_BY(::cs_main){nullptr};
//! The total number of bytes available for us to use across all in-memory
//! coins caches. This will be split somehow across chainstates.