From 1d87137227ee125018006935d55164a72265c935 Mon Sep 17 00:00:00 2001 From: dergoegge Date: Mon, 14 Nov 2022 11:01:48 +0000 Subject: [PATCH] [validation] Annotate ChainstateManager::m_best_header as guarded by cs_main --- src/validation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.h b/src/validation.h index aba863db093..0044004b797 100644 --- a/src/validation.h +++ b/src/validation.h @@ -997,7 +997,7 @@ public: std::set 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.